From 0ed191eef0d78201a63202f5e9edb56f436a9b7c Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Tue, 23 Jun 2015 00:03:25 +0200 Subject: [PATCH] Add Messages.sh for gettext extraction. --- Messages.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 Messages.sh diff --git a/Messages.sh b/Messages.sh new file mode 100755 index 0000000..b52738d --- /dev/null +++ b/Messages.sh @@ -0,0 +1,16 @@ +#! /usr/bin/env bash +subdirs="gui" +rcfiles="`find $subdirs -name \*.rc`" +uifiles="`find $subdirs -name \*.ui`" +kcfgfiles="`find $subdirs -name \*.kcfg`" +if [[ "$rcfiles" != "" ]] ; then + $EXTRACTRC $rcfiles >> rc.cpp || exit 11 +fi +if [[ "$uifiles" != "" ]] ; then + $EXTRACTRC $uifiles >> rc.cpp || exit 12 +fi +if [[ "$kcfgfiles" != "" ]] ; then + $EXTRACTRC $kcfgfiles >> rc.cpp || exit 13 +fi +$XGETTEXT -kaliasLocal `find $subdirs -name \*.cc -o -name \*.cpp -o -name \*.h | grep -v '/tests/'` rc.cpp -o $podir/heaptrack.pot +rm -f rc.cpp -- 2.7.4