aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gettext-extract
diff options
context:
space:
mode:
authorlouise <louise>2009-11-30 10:21:52 +0000
committerlouise <louise>2009-11-30 10:21:52 +0000
commit6c1e9b66cc26b81321cb6d9f1631a17f5c126114 (patch)
tree5f9e75bf40fd16362e20f07a792f7bfa6100fca9 /bin/gettext-extract
parent6e62cc4bcbb3f71715ceb448efba775e93535c70 (diff)
Replace check for specific directories with general subdir check - any subdirs should be specified above
Diffstat (limited to 'bin/gettext-extract')
-rwxr-xr-xbin/gettext-extract6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract
index a750dda62..010b5daab 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.13 2009-11-19 10:29:29 louise Exp $
+# $Id: gettext-extract,v 1.14 2009-11-30 10:21:52 louise Exp $
if [ -e ../../locale ]
then
@@ -62,11 +62,11 @@ mv $TEMP $PO
# Extract email templates
echo >> $PO
echo '#. Please leave the first word "Subject:" untranslated' >> $PO
-for X in bci/templates/emails/* bci/templates/emails/emptyhomes/*
+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 [ "$X" != "bci/templates/emails/emptyhomes" -a "$X" != "bci/templates/emails/CVS" -a "$X" != "bci/templates/emails/emptyhomes/CVS" ]
+ if [ ! -d "$X" ]
then
echo >> $PO
echo "#: $X" >> $PO