]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
test_summary: handle single quotes
authorclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Mar 2018 08:47:12 +0000 (08:47 +0000)
committerclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Mar 2018 08:47:12 +0000 (08:47 +0000)
2018-03-21  Christophe Lyon  <christophe.lyon@linaro.org>

* test_summary: Match possible single quotes in configure path.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258706 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/test_summary

index 6bb3b6f442e43230be01387c6799712657e0af97..7575dd9d10d6e5e91da1d63ee29ba3897adfc0e4 100644 (file)
@@ -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.
index 5fc49f52bda7a7ab0eedef0e9f6f96924b69f4bd..3560a64c4f191c0139f6e8569b17c6e886b435db 100755 (executable)
@@ -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);