* uninclude: Fix third argument to gensub.

From-SVN: r232589
This commit is contained in:
Jonathan Wakely 2016-01-19 22:00:17 +00:00 committed by Jonathan Wakely
parent ac0653cf6d
commit 4a8c29cc7a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-01-19 Jonathan Wakely <jwakely@redhat.com>
* uninclude: Fix third argument to gensub.
2016-01-04 Jakub Jelinek <jakub@redhat.com>
* update-copyright.py (GCCCopyright): Add NVIDIA Corporation

View File

@ -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 {