From 9b794b26308de53916cd904c80c7839721109be9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 18 Oct 2007 02:11:41 +0000 Subject: Make it work with older versions of GNU sed. --- windows/windres-options | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'windows') 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 -- cgit v1.1