diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-16 00:08:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-16 00:08:57 +0000 |
commit | 7257f7ba4749c6aa3c0e20d1c57220eba3e4f3e9 (patch) | |
tree | 4858ebfa6a9525e57d2964683ddae645d4d1814f /Build/source/utils/xz-4.999.8beta/po/remove-potcdate.sin | |
parent | e2907af6c5c00179368e3bef7fa7b4cb9da0d72c (diff) |
xz-4.999.8beta sources
git-svn-id: svn://tug.org/texlive/trunk@13108 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/xz-4.999.8beta/po/remove-potcdate.sin')
-rw-r--r-- | Build/source/utils/xz-4.999.8beta/po/remove-potcdate.sin | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/utils/xz-4.999.8beta/po/remove-potcdate.sin b/Build/source/utils/xz-4.999.8beta/po/remove-potcdate.sin new file mode 100644 index 00000000000..2436c49e786 --- /dev/null +++ b/Build/source/utils/xz-4.999.8beta/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 +} |