629fa18c92
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/mingw-filesystem#b733b32514d698cd44765eb7c4aa950f1ee391ff
18 lines
384 B
Bash
Executable File
18 lines
384 B
Bash
Executable File
#!/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
|