summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-18 02:11:41 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:19 +0200
commit9b794b26308de53916cd904c80c7839721109be9 (patch)
treebc14aa8f0584fedbca3e3518bc0bede19633aab1 /windows
parent6e1585a412344962ba3cd8d16e92c5b50cbfcfee (diff)
downloadgettext-9b794b26308de53916cd904c80c7839721109be9.tar.gz
Make it work with older versions of GNU sed.
Diffstat (limited to 'windows')
-rwxr-xr-xwindows/windres-options15
1 files changed, 12 insertions, 3 deletions
diff --git a/windows/windres-options b/windows/windres-options
index f2f148f81..ed55fb85f 100755
--- a/windows/windres-options
+++ b/windows/windres-options
@@ -14,17 +14,26 @@ if test "$1" = "--escape"; then
fi
version="$1" # something like 2.0 or 2.17 or 2.17.3 or 2.17.3-pre3
-sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q}
+sed_extract_major='/^[0-9]/{
+s/^\([0-9]*\).*/\1/p
+q
+}
a\
0
q
'
-sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q}
+sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{
+s/^[0-9]*[.]\([0-9]*\).*/\1/p
+q
+}
a\
0
q
'
-sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q}
+sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{
+s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p
+q
+}
a\
0
q