You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxqt-about-packaging/.tx/updateSrc.sh

20 lines
417 B

#!/bin/sh
LUPDATE_OPTIONS="-noobsolete"
LUPDATE_OPTIONS="${LUPDATE_OPTIONS} -locations none "
TS_FILE="../translations/source.ts"
LUPDATE=$(which lupdate-qt4 2>/dev/null)
[ -z "${LUPDATE}" ] && LUPDATE=$(which lupdate 2>/dev/null)
if [ -z "${LUPDATE}" ]; then
echo "The lupdate program not found."
exit 1;
fi
${LUPDATE} ${LUPDATE_OPTIONS} .. -ts ${TS_FILE}
grep '<message>' ${TS_FILE} || rm ${TS_FILE}