From: Ulya Trofimovich Date: Mon, 28 Jul 2014 15:07:52 +0000 (+0300) Subject: run_tests.sh: avoid non-portable sed feature X-Git-Tag: 0.13.7.4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a43ddb4e09892c988562cb52d24a5d7da2decea7;p=re2c run_tests.sh: avoid non-portable sed feature --- diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index d41d7467..10b8206a 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -39,7 +39,7 @@ tests="$@" fi; for x in $tests; do tstcnt=$(($tstcnt+1)) - switches=`basename $x|sed -e 's/^[^.]*\.\(.*\)\.re$/-\1/g' -e 's/^[^-].*//g' -e 's/\([^ ]\)--/\1 --/g' -e 's/(\([^)]\+\))/ \1/g'` + switches=`basename $x|sed -e 's/^[^.]*\.\(.*\)\.re$/-\1/g' -e 's/^[^-].*//g' -e 's/\([^ ]\)--/\1 --/g' -e 's/(\([^)]*\))/ \1/g'` genname=`printf "%s" "$switches"|sed -e 's,--.*$,,g' -e 's,^.[^o]*$,,g' -e 's,^[^ot]*t.*o.*$,,g' -e 's,^-[^o]*o\(.*\),@builddir@/test/\1,g'` headers=`printf "%s" "$switches"|sed -e 's,--.*$,,g' -e 's,^.[^t]*$,,g' -e 's,^[^ot]*o.*t.*$,,g' -e 's,^-[^t]*t\(.*\),@builddir@/test/\1,g'` switches=`printf "%s" "$switches"|sed -e 's,^-\([^ot-]*[ot]\)\(.*\)$,-\1@builddir@/test/\2,g'`