Commit f287e05f authored by Rudolf Polzer's avatar Rudolf Polzer

Fix "make clean" on Debian (dash). Use cpp's file lists for check-translations.sh.

parent 38161f69
Pipeline #650606 passed with stages
......@@ -29,8 +29,33 @@ case "$1" in
esac
if [ x"$mode" = x"pot" ]; then
make QCC="../../../../gmqcc/gmqcc" clean
make QCC="../../../../gmqcc/gmqcc"
{
find qcsrc -type f -name \*.\* -not -name \*.po -not -name \*.txt
grep -h '^\.' qcsrc/tmp/*_includes.txt | cut -d ' ' -f 2 | sed -e 's,^,qcsrc/,' | while IFS= read -r name; do
while :; do
case "$name" in
*/./*)
name=${name%%/./*}/${name#*/./}
;;
./*)
name=${name#./}
;;
*/*/../*)
before=${name%%/../*}
before=${before%/*}
name=$before/${name#*/../}
;;
*/../*)
name=${name#*/../}
;;
*)
break
;;
esac
done
echo "$name"
done | sort -u | tee lst
} | xgettext -LC -k_ -f- --from-code utf-8 -F -o common.pot >&2
fi
......
......@@ -41,8 +41,12 @@ qc: $(PROGS_OUT)/menu.dat $(PROGS_OUT)/progs.dat $(PROGS_OUT)/csprogs.dat
.PHONY: clean
clean:
rm -f $(PROGS_OUT)/{csprogs,progs,menu}.dat
rm -f ../.tmp/*.{qc,d,txt}
rm -f $(PROGS_OUT)/csprogs.dat
rm -f $(PROGS_OUT)/progs.dat
rm -f $(PROGS_OUT)/menu.dat
rm -f ../.tmp/*.qc
rm -f ../.tmp/*.d
rm -f ../.tmp/*.txt
$(QCCVERSIONFILE):
$(RM) qccversion.*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment