Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.191.171.136
#!/bin/sh
# Env
# KUBUNTU_L10N_FORCE_RUN:: force running regardless of what ma be detected otherwise
# KUBUNTU_L10N_NO_DESKTOP:: don't process desktop files
if [ -z "$KUBUNTU_L10N_FORCE_RUN" ]; then
if ! grep -q '^Purpose: PRIMARY' /CurrentlyBuilding ||
! grep -q 'X[[:alpha:]]*-Ubuntu-Use-Langpack: yes' debian/control; then
echo "No primary archive build or not using langpack -> not generating l10n content."
exit 0
fi
else
echo "Forcing l10n run"
fi
libpath=/usr/lib/kubuntu-l10n/
export PATH=$libpath/libexec:$PATH
if [ -z ${KUBUNTU_DESKTOP_POT} ]; then
KUBUNTU_DESKTOP_POT=`dpkg-parsechangelog | grep Source: | cut -d: -f2 | tr -d ' '`
fi
if [ -z ${KUBUNTU_NO_DELETE_POT} ]; then
# Strip translation domain from desktop files...
finddesktopfiles LIST
for file in `cat LIST`; do
sed -i '/X-Ubuntu-Gettext-Domain=/d' ${file}
done
rm -f LIST
# Remove all pots.
rm -rf po/*.pot;
fi
|