diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2018-03-21 08:47:12 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2018-03-21 09:47:12 +0100 |
commit | 1e4573c0b7f0980097e6b9bd516bc32347a7856c (patch) | |
tree | 672bec12f9f1801973dbf53b4ff25a5c974c2a9d /contrib | |
parent | cc614ac0b6b6a482b21baa1b1e095506f5d35c38 (diff) | |
download | gcc-1e4573c0b7f0980097e6b9bd516bc32347a7856c.tar.gz |
test_summary: handle single quotes
2018-03-21 Christophe Lyon <christophe.lyon@linaro.org>
* test_summary: Match possible single quotes in configure path.
From-SVN: r258706
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/test_summary | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 6bb3b6f442e..7575dd9d10d 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2018-03-21 Christophe Lyon <christophe.lyon@linaro.org> + + * test_summary: Match possible single quotes in configure path. + 2018-03-02 Thomas Schwinge <thomas@codesourcery.com> * update-copyright.py: Remove "libcilkrts" reference. diff --git a/contrib/test_summary b/contrib/test_summary index 5fc49f52bda..3560a64c4f1 100755 --- a/contrib/test_summary +++ b/contrib/test_summary @@ -103,14 +103,15 @@ BEGIN { NR == 1 { configflags = $0 " "; srcdir = configflags; - sub(/\/configure .*/, "", srcdir); + sub(/\/configure\047? .*/, "", srcdir); + sub(/^\047/, "", srcdir); if ( system("test -f " srcdir "/LAST_UPDATED") == 0 ) { printf "LAST_UPDATED: "; system("tail -1 " srcdir "/LAST_UPDATED"); print ""; } - sub(/^[^ ]*\/configure */, " ", configflags); + sub(/^[^ ]*\/configure\047? */, " ", configflags); sub(/,;t t $/, " ", configflags); sub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags); sub(/ --norecursion /, " ", configflags); |