/usr/bin/dh_kubuntu_l10n_clean is in pkg-kde-tools 0.15.28ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/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
|