diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-23 18:42:24 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-09-23 18:42:24 +0000 |
commit | 2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9 (patch) | |
tree | 88417f5fec14aa97d75dba5f712078ad5d5e66bf /po/remove-potcdate.sin | |
parent | cd in subdir (diff) | |
download | w3m-2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9.tar.gz w3m-2b74f5b7671e2cb7d4d71d8e5167c5965a1784e9.zip |
gettextize initial modifications
Diffstat (limited to 'po/remove-potcdate.sin')
-rw-r--r-- | po/remove-potcdate.sin | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin new file mode 100644 index 0000000..2436c49 --- /dev/null +++ b/po/remove-potcdate.sin @@ -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 +} |