[pacman-dev] CVS update of pacman-lib (4 files)
dan at archlinux.org
dan at archlinux.org
Thu Feb 8 00:36:26 EST 2007
Date: Thursday, February 8, 2007 @ 00:36:26
Author: dan
Path: /home/cvs-pacman/pacman-lib
Added: lib/libalpm/po/remove-potcdate.sin (1.1)
src/pacman/po/remove-potcdate.sin (1.1)
Modified: lib/libalpm/po/.cvsignore (1.1 -> 1.2)
src/pacman/po/.cvsignore (1.1 -> 1.2)
* Oops. Added some files to make "make update-po" work.
------------------------------------+
lib/libalpm/po/.cvsignore | 2 ++
lib/libalpm/po/remove-potcdate.sin | 19 +++++++++++++++++++
src/pacman/po/.cvsignore | 2 ++
src/pacman/po/remove-potcdate.sin | 19 +++++++++++++++++++
4 files changed, 42 insertions(+)
Index: pacman-lib/lib/libalpm/po/.cvsignore
diff -u pacman-lib/lib/libalpm/po/.cvsignore:1.1 pacman-lib/lib/libalpm/po/.cvsignore:1.2
--- pacman-lib/lib/libalpm/po/.cvsignore:1.1 Tue Jan 16 22:40:09 2007
+++ pacman-lib/lib/libalpm/po/.cvsignore Thu Feb 8 00:36:26 2007
@@ -4,3 +4,5 @@
POTFILES
stamp-po
+remove-potcdate.sin
+remove-potcdate.sed
Index: pacman-lib/lib/libalpm/po/remove-potcdate.sin
diff -u /dev/null pacman-lib/lib/libalpm/po/remove-potcdate.sin:1.1
--- /dev/null Thu Feb 8 00:36:26 2007
+++ pacman-lib/lib/libalpm/po/remove-potcdate.sin Thu Feb 8 00:36:26 2007
@@ -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
+}
Index: pacman-lib/src/pacman/po/.cvsignore
diff -u pacman-lib/src/pacman/po/.cvsignore:1.1 pacman-lib/src/pacman/po/.cvsignore:1.2
--- pacman-lib/src/pacman/po/.cvsignore:1.1 Tue Jan 16 22:40:09 2007
+++ pacman-lib/src/pacman/po/.cvsignore Thu Feb 8 00:36:26 2007
@@ -4,3 +4,5 @@
POTFILES
stamp-po
+remove-potcdate.sin
+remove-potcdate.sed
Index: pacman-lib/src/pacman/po/remove-potcdate.sin
diff -u /dev/null pacman-lib/src/pacman/po/remove-potcdate.sin:1.1
--- /dev/null Thu Feb 8 00:36:26 2007
+++ pacman-lib/src/pacman/po/remove-potcdate.sin Thu Feb 8 00:36:26 2007
@@ -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 pacman-dev
mailing list