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