From: Jonathan Wakely Date: Tue, 19 Jan 2016 22:00:17 +0000 (+0000) Subject: * uninclude: Fix third argument to gensub. X-Git-Tag: basepoints/gcc-7~1480 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a8c29cc7af55c3278bea0912e52b8739d274480;p=thirdparty%2Fgcc.git * uninclude: Fix third argument to gensub. From-SVN: r232589 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index c15df12886a0..f9e1126dc999 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2016-01-19 Jonathan Wakely + + * uninclude: Fix third argument to gensub. + 2016-01-04 Jakub Jelinek * update-copyright.py (GCCCopyright): Add NVIDIA Corporation diff --git a/contrib/uninclude b/contrib/uninclude index 8ba28e5cfb7a..5612e655a985 100755 --- a/contrib/uninclude +++ b/contrib/uninclude @@ -38,7 +38,7 @@ BEGIN { !skipping && $0 ~ cppline && (exclude == "" || $3 !~ exclude) && (include == "" || $3 ~ include) { skipping = 1; - printf "%s\n", "#include <" gensub(cppline, "\\2", "", $0) ">" + printf "%s\n", "#include <" gensub(cppline, "\\2", 1, $0) ">" next; } skipping && /^# [0-9]+ / && $3 == lastincluded {