[Gpa-commits] r982 - trunk/po

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 7 11:05:43 CEST 2009


Author: werner
Date: 2009-04-07 11:05:42 +0200 (Tue, 07 Apr 2009)
New Revision: 982

Added:
   trunk/po/remove-potcdate.sin
Removed:
   trunk/po/remove-potcdate.sed
Log:
Fix what has to go into the svn.


Deleted: trunk/po/remove-potcdate.sed
===================================================================
--- trunk/po/remove-potcdate.sed	2009-04-05 17:31:49 UTC (rev 981)
+++ trunk/po/remove-potcdate.sed	2009-04-07 09:05:42 UTC (rev 982)
@@ -1,11 +0,0 @@
-/^"POT-Creation-Date: .*"$/{
-x
-s/P/P/
-ta
-g
-d
-bb
-:a
-x
-:b
-}

Added: trunk/po/remove-potcdate.sin
===================================================================
--- trunk/po/remove-potcdate.sin	2009-04-05 17:31:49 UTC (rev 981)
+++ trunk/po/remove-potcdate.sin	2009-04-07 09:05:42 UTC (rev 982)
@@ -0,0 +1,19 @@
+# Sed script that remove the POT-Creation-Date line in the header entry
+# from a POT file.
+#
+# The distinction between the first and the following occurrences of the
+# pattern is achieved by looking at the hold space.
+/^"POT-Creation-Date: .*"$/{
+x
+# Test if the hold space is empty.
+s/P/P/
+ta
+# Yes it was empty. First occurrence. Remove the line.
+g
+d
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}



More information about the Gpa-commits mailing list