From bae5b14de9d221d9e4aa35e52d5024126a9e1b0c Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Sun, 29 Nov 2015 11:04:56 +0000 Subject: [PATCH] run_tests.sh: use '--no-version --no-generation-date' instead of sed hack. These options make re2c omit version and date info and thus produce stable test results. --- re2c/run_tests.sh.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index dfa7978c..a8c9b84f 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -128,7 +128,7 @@ run_pack() { -e 's/^\([^-]\)/-\1/' \ -e 's/--\([^ (-]*\)/ --\1/g' \ -e 's/(\([^)]*\))/ \1/g'` - local switches="$switches -o $outc" + local switches="$switches -o $outc --no-version --no-generation-date" # enable warnings globally local switches="$switches -W" @@ -163,7 +163,6 @@ run_pack() { rm "$outx" && find . -type f \ | lc_run sort \ | xargs cat \ - | lc_run sed -e 's,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g' \ >> "../$outc" # cleanup sandbox cd .. \ -- 2.50.0