0c1e1f
#!/bin/bash
0c1e1f
0c1e1f
# Wrapper for the %find_lang macro which splits out the various translations in per-target lists
0c1e1f
0c1e1f
/usr/lib/rpm/find-lang.sh $*
0c1e1f
if test $? != 0 ; then
0c1e1f
    exit 1
0c1e1f
fi
0c1e1f
0c1e1f
PACKAGE_NAME=$2
0c1e1f
targets=`rpm --eval '%{mingw_build_targets}'`
0c1e1f
for target in $targets; do
0c1e1f
	prefix=`rpm --eval "%{${target}_prefix}"`
0c1e1f
	cat $2.lang | grep "$prefix" > ${target}-$PACKAGE_NAME.lang
0c1e1f
done
0c1e1f
0c1e1f
exit 0