Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > d7162f9df4168f3b2515dc360b6f3036 > files > 12

mingw-filesystem-99-5.mga5.src.rpm

#!/bin/bash

# Wrapper for the %find_lang macro which splits out the various translations in per-target lists

/usr/lib/rpm/find-lang.sh $*
if test $? != 0 ; then
    exit 1
fi

PACKAGE_NAME=$2
targets=`rpm --eval '%{mingw_build_targets}'`
for target in $targets; do
	prefix=`rpm --eval "%{${target}_prefix}"`
	cat $2.lang | grep "$prefix" > ${target}-$PACKAGE_NAME.lang
done

exit 0