Project

General

Profile

Feature #2208 ยป 0068-generate_skip.sh-Remove-x-prefixing.patch

Marko Lindqvist, 09/05/2026 05:03 AM

View differences:

translations/generate_skips.sh
SRCDIR="$(dirname "$0")"
if test "x$1" = "x-h" || test "x$1" = "x--help" ; then
if test "$1" = "-h" || test "$1" = "--help" ; then
echo "Usage: $(basename $0) [domain=all]"
exit
fi
DOMAINLIST_FULL="core nations ruledit"
cd $SRCDIR
cd "${SRCDIR}"
if test "x$1" != "x" && test "x$1" != "xall" ; then
if test "$1" != "" && test "$1" != "all" ; then
for domain in $1
do
domain_found=no
for other_domain in $DOMAINLIST_FULL
for other_domain in ${DOMAINLIST_FULL}
do
if test $domain = $other_domain ; then
if test ${domain} = ${other_domain} ; then
domain_found=yes
fi
done
if test $domain_found != yes ; then
echo "Unknown domain \"$domain\" given!" >&2
if test ${domain_found} != yes ; then
echo "Unknown domain \"${domain}\" given!" >&2
exit 1
fi
done
DOMAINLIST="$1"
else
DOMAINLIST="$DOMAINLIST_FULL"
DOMAINLIST="${DOMAINLIST_FULL}"
fi
for domain in $DOMAINLIST
for domain in ${DOMAINLIST}
do
cp global.skip $domain/POTFILES.skip
for other_domain in $DOMAINLIST_FULL
cp global.skip ${domain}/POTFILES.skip
for other_domain in ${DOMAINLIST_FULL}
do
if test $domain != $other_domain ; then
cat $other_domain/POTFILES.in >> $domain/POTFILES.skip
if test ${domain} != ${other_domain} ; then
cat ${other_domain}/POTFILES.in >> ${domain}/POTFILES.skip
fi
done
done
    (1-1/1)