aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gettext-extract
diff options
context:
space:
mode:
authorlouise <louise>2009-11-19 10:29:29 +0000
committerlouise <louise>2009-11-19 10:29:29 +0000
commit776513a674518c4d2c9a1457cd4f361cd2af5ed3 (patch)
treeb6703989c609ec1f3936f4f39c8e52c42ec54c71 /bin/gettext-extract
parent8cfe44d6f3c35cbdc44c6e55770219d0ad9e0695 (diff)
Revert - not intended for checkin
Diffstat (limited to 'bin/gettext-extract')
-rwxr-xr-xbin/gettext-extract17
1 files changed, 7 insertions, 10 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract
index 5924d7200..a750dda62 100755
--- a/bin/gettext-extract
+++ b/bin/gettext-extract
@@ -7,7 +7,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: gettext-extract,v 1.12 2009-11-19 10:23:40 louise Exp $
+# $Id: gettext-extract,v 1.13 2009-11-19 10:29:29 louise Exp $
if [ -e ../../locale ]
then
@@ -66,16 +66,13 @@ for X in bci/templates/emails/* bci/templates/emails/emptyhomes/*
do
# TODO: Should check for "*~" type filenames too, and do the *-livesimply case
# with wildcards rather than checking per template
- if [ ! -d "$X" ]
+ if [ "$X" != "bci/templates/emails/emptyhomes" -a "$X" != "bci/templates/emails/CVS" -a "$X" != "bci/templates/emails/emptyhomes/CVS" ]
then
- if [ "$X" != "bci/templates/emails/emptyhomes" -a "$X" != "bci/templates/emails/CVS" -a "$X" != "bci/templates/emails/emptyhomes/CVS" ]
- then
- echo >> $PO
- echo "#: $X" >> $PO
- echo msgid \"\" >> $PO
- cat "$X" | plain_gettext_escape >> $PO
- echo msgstr \"\" >> $PO
- fi
+ echo >> $PO
+ echo "#: $X" >> $PO
+ echo msgid \"\" >> $PO
+ cat "$X" | plain_gettext_escape >> $PO
+ echo msgstr \"\" >> $PO
fi
done