summaryrefslogtreecommitdiff
path: root/addLanguage.sh
authormickeyl <mickeyl>2005-06-13 20:45:33 (UTC)
committer mickeyl <mickeyl>2005-06-13 20:45:33 (UTC)
commit8e7defdc3c1129f9e0935761ead46d9428306f7f (patch) (side-by-side diff)
tree02f82b75aab6e5aef4234a724c7f0a6269bd317b /addLanguage.sh
parentdb659a76f8eb5f4888881663361369ddb16444b1 (diff)
downloadopie-8e7defdc3c1129f9e0935761ead46d9428306f7f.zip
opie-8e7defdc3c1129f9e0935761ead46d9428306f7f.tar.gz
opie-8e7defdc3c1129f9e0935761ead46d9428306f7f.tar.bz2
forgot to remove 'em here
Diffstat (limited to 'addLanguage.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-xaddLanguage.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/addLanguage.sh b/addLanguage.sh
deleted file mode 100755
index e321804..0000000
--- a/addLanguage.sh
+++ b/dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# (c) 2002 Bruno Rodrigues <bruno.rodrigues@litux.org>
-# Under GPL Licence
-
-# Add a new TRANSLATION line to every .pro file if there
-# is already at least one TRANSLATION file and this LANG
-# is not present
-# The perl line would grab a TRANSLATION = something and
-# duplicate it to TRANSLATION += .../LANG/...
-
-LANG=$1
-
-if [ "$1x" == "x" ] ; then
- echo "Usage: $0 <LANG>"
- exit
-fi
-
-for i in `find . -name "*.pro"` ; do
- grep TRANSLATIONS $i > /dev/null
- if [ "$?" != 0 ] ; then
- echo "$i: No Translations"
- else
- grep "../i18n/$LANG/" $i > /dev/null
- if [ "$?" == 0 ] ; then
- echo "$i: $LANG already there"
- else
- echo "$i: Adding $LANG"
- perl -p -i.bak -e 's/^(TRANSLATIONS\s*\+?=\s*)(.+?i18n\/)(.+?)(\/.+?\.ts)(.*)$/$1$2$3$4 \\\n\t $2'$LANG'$4$5/' $i
- fi
- fi
-done
-