[sgen] Remove dead macros.
[mono.git] / po / mcs / remove-potcdate.sin
deleted file mode 120000 (symlink)
index 6fff4b83cc1b379efd064d1d76aced09071010a9..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/gettext/po/remove-potcdate.sin
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..2436c49e786dea6c9b4a8f87803288496ed38164
--- /dev/null
@@ -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
+}