From e7ec1efdc843e3ecb88423dfd83c4470d289da72 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 10 Jun 2022 10:36:56 +0100 Subject: [PATCH] Remove unused, no-op create_pot_file.sh 614f6573e71d6e06d8888c0957a64a0c7fd8921d made this "a no-op script, for now", in September 2006. It seems safe to assume, 16 years later, that if it is needed it can be recovered from the Git history. --- src/po/create_pot_file.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 src/po/create_pot_file.sh diff --git a/src/po/create_pot_file.sh b/src/po/create_pot_file.sh deleted file mode 100755 index cc5e19201..000000000 --- a/src/po/create_pot_file.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -# script to create a correct *.pot file -# -# the problem is that the i18n() functions can be of -# one argument: i18n("translatable string") -# or of two arguments: i18n("context", "translatable string") -# this script rewrite the source files changing that second form -# into i18n("_: context\ntranslatable string") that xgettext can grok -# and produce the same kind of *.pot as expected by KDE - -exit - -rm -f POTFILES.new -(for i in `grep -v "encoding" POTFILES.in | sed 's:^:../:'` -do - j="${i}_" - cat ${i} | \ - sed 's|\(i18n[^(]*([^"]*"\)\([^"]*\)"[^")]*,[^")]*"|\1_: \2\\n|' > ${j} - echo ${j} | sed 's:^...::' >> POTFILES.new -done ) - -intltool-update --pot && mv -f tuxpaint.pot tuxpaint_tmp.pot -/usr/bin/xgettext --from-code=UTF-8 -o tuxpaint_tmp_C.pot --directory=.. \ - --add-comments --keyword=I_ --keyword=i18n \ - --keyword=I18N_NOOP \ - --language=C \ - --files-from=./POTFILES.new -msgcat --use-first tuxpaint_tmp.pot tuxpaint_tmp_C.pot > tuxpaint.pot - -( cd .. ; rm -f `cat po/POTFILES.new` ) -rm -f POTFILES.new tuxpaint_tmp*.pot -