[or-cvs] r19959: {translation} modified the regex to exclude comments as well (translation/trunk/tools/gsoc09)
runa at seul.org
runa at seul.org
Thu Jul 9 13:33:18 UTC 2009
Author: runa
Date: 2009-07-09 09:33:17 -0400 (Thu, 09 Jul 2009)
New Revision: 19959
Modified:
translation/trunk/tools/gsoc09/wml2po.sh
Log:
modified the regex to exclude comments as well
Modified: translation/trunk/tools/gsoc09/wml2po.sh
===================================================================
--- translation/trunk/tools/gsoc09/wml2po.sh 2009-07-09 11:41:24 UTC (rev 19958)
+++ translation/trunk/tools/gsoc09/wml2po.sh 2009-07-09 13:33:17 UTC (rev 19959)
@@ -75,7 +75,7 @@
# the file is updated.
if [ $poexist = 1 ]
then
- before=`grep -v '^"POT-Creation-Date:' "$popath/$dir/$pofile" | md5sum | cut -d " " -f1`
+ before=`grep -vE '^("POT-Creation-Date:|#)' "$popath/$dir/$pofile" | md5sum | cut -d " " -f1`
fi
# Update the file
@@ -88,7 +88,7 @@
# calculate the hash again.
if [ $poexist = 1 ]
then
- after=`grep -v '^"POT-Creation-Date:' "$popath/$dir/$pofile" | md5sum | cut -d " " -f1`
+ after=`grep -vE '^("POT-Creation-Date:|#)' "$popath/$dir/$pofile" | md5sum | cut -d " " -f1`
fi
# If the file did exist before running po4a-updatepo, we
More information about the tor-commits
mailing list