diff --git a/locale/update_po_files.sh b/locale/update_po_files.sh old mode 100644 new mode 100755 index 950c24e77..c5545fe2c --- a/locale/update_po_files.sh +++ b/locale/update_po_files.sh @@ -1,6 +1,7 @@ +#!/bin/sh echo ";; Recreating audacity.pot using .h, .cpp and .mm files" for path in ../lib-src/FileDialog ../lib-src/mod-script* ../lib-src/mod-nyq* ../include ../src ; do find $path -name \*.h -o -name \*.cpp -o -name \*.mm ; done | LANG=c sort | \ -sed -r 's/\.\.\///g' |\ +sed -E 's/\.\.\///g' |\ xargs xgettext \ --default-domain=audacity \ --directory=.. \ @@ -14,7 +15,7 @@ xargs xgettext \ --add-location=file -L C -o audacity.pot echo ";; Adding nyquist files to audacity.pot" for path in ../plug-ins ; do find $path -name \*.ny -not -name rms.ny; done | LANG=c sort | \ -sed -r 's/\.\.\///g' |\ +sed -E 's/\.\.\///g' |\ xargs xgettext \ --default-domain=audacity \ --directory=.. \ @@ -36,5 +37,5 @@ done echo "" echo ";;Translation updated" echo "" -head --lines=11 audacity.pot | tail --lines=3 +head -n 11 audacity.pot | tail -n 3 wc -l audacity.pot