[Midnightbsd-cvs] mports: chkfake.pl: Strip whitespace from the end of a plist entry.

ctriv at midnightbsd.org ctriv at midnightbsd.org
Mon Oct 1 15:28:33 EDT 2007


Log Message:
-----------
Strip whitespace from the end of a plist entry.

Modified Files:
--------------
    mports/Tools/scripts:
        chkfake.pl (r1.5 -> r1.6)

-------------- next part --------------
Index: chkfake.pl
===================================================================
RCS file: /home/cvs/mports/Tools/scripts/chkfake.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -LTools/scripts/chkfake.pl -LTools/scripts/chkfake.pl -u -r1.5 -r1.6
--- Tools/scripts/chkfake.pl
+++ Tools/scripts/chkfake.pl
@@ -46,12 +46,14 @@
 my $ok  = 1;
 while (<$fh>) {
   chomp;
+  s/\s*$//;
+  
   if (m/^@(?:cwd|cd)\s*(.*)/) {
     $cwd = $1 || $prefix;
   }
 
   next if m/^\@/;
-  
+ 
   # skip symlinks.
   next if -l "$destdir$cwd/$_";
   


More information about the Midnightbsd-cvs mailing list