Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: bison/src/bison/2.4.1/bison-2.4.1-src/po/remove-potcdate.sin

Issue 10807020: Add native Windows binary for bison. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bison/src/bison/2.4.1/bison-2.4.1-src/po/quot.sed ('k') | bison/src/bison/2.4.1/bison-2.4.1-src/po/ro.gmo » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bison/src/bison/2.4.1/bison-2.4.1-src/po/remove-potcdate.sin
===================================================================
--- bison/src/bison/2.4.1/bison-2.4.1-src/po/remove-potcdate.sin (revision 0)
+++ bison/src/bison/2.4.1/bison-2.4.1-src/po/remove-potcdate.sin (revision 0)
@@ -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
+}
« no previous file with comments | « bison/src/bison/2.4.1/bison-2.4.1-src/po/quot.sed ('k') | bison/src/bison/2.4.1/bison-2.4.1-src/po/ro.gmo » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698