From a43ddb4e09892c988562cb52d24a5d7da2decea7 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Mon, 28 Jul 2014 18:07:52 +0300 Subject: [PATCH] run_tests.sh: avoid non-portable sed feature --- re2c/run_tests.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'` -- 2.50.1