The following commit has been merged in the master branch:
commit 0bdf2701482c4ee6d7f25bc048eb654327716c88
Author: Raphael Geissert <[email protected]>
Date: Thu May 13 09:43:26 2010 -0500
checkbashisms: improve handling of line continuations
Signed-off-by: Raphael Geissert <[email protected]>
Signed-off-by: James Vega <[email protected]>
diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index 1eeda6a..fead788 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -105,6 +105,7 @@ foreach my $filename (@ARGV) {
my $last_continued = 0;
my $continued = 0;
my $found_rules = 0;
+ my $buffered_orig_line = "";
my $buffered_line = "";
while (<C>) {
@@ -175,12 +176,15 @@ foreach my $filename (@ARGV) {
if (!$makefile && $cat_string eq '' && m/\\$/) {
chop;
$buffered_line .= $_;
+ $buffered_orig_line .= $orig_line . "\n";
next;
}
if ($buffered_line ne '') {
$_ = $buffered_line . $_;
+ $orig_line = $buffered_orig_line . $orig_line;
$buffered_line ='';
+ $buffered_orig_line ='';
}
if ($makefile) {
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].