diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-18 02:11:41 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:19 +0200 |
commit | 9b794b26308de53916cd904c80c7839721109be9 (patch) | |
tree | bc14aa8f0584fedbca3e3518bc0bede19633aab1 /windows | |
parent | 6e1585a412344962ba3cd8d16e92c5b50cbfcfee (diff) | |
download | external_gettext-9b794b26308de53916cd904c80c7839721109be9.zip external_gettext-9b794b26308de53916cd904c80c7839721109be9.tar.gz external_gettext-9b794b26308de53916cd904c80c7839721109be9.tar.bz2 |
Make it work with older versions of GNU sed.
Diffstat (limited to 'windows')
-rwxr-xr-x | windows/windres-options | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/windows/windres-options b/windows/windres-options index f2f148f..ed55fb8 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 |