summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <[email protected]>2009-07-12 18:56:00 -0700
committerRuss Cox <[email protected]>2009-07-12 18:56:00 -0700
commit4ed996f552cac7fc6e9713355bdd36e303c76b72 (patch)
tree64b1078f668dc529f8028342b85610f4c047fb84
parentd42cbd75b2921d881d133016b5e6dc3e85f89f1a (diff)
downloadxv6-labs-4ed996f552cac7fc6e9713355bdd36e303c76b72.tar.gz
xv6-labs-4ed996f552cac7fc6e9713355bdd36e303c76b72.tar.bz2
xv6-labs-4ed996f552cac7fc6e9713355bdd36e303c76b72.zip
strip //DOC comments during printing
-rwxr-xr-xrunoff11
1 files changed, 1 insertions, 0 deletions
diff --git a/runoff1 b/runoff1
index ba42e8f..44fdcbe 100755
--- a/runoff1
+++ b/runoff1
@@ -19,6 +19,7 @@ $linenum = 0;
foreach (@lines) {
$linenum++;
chomp;
+ s!//DOC.*!!;
s/\s+$//;
if(length() >= 75){
print STDERR "$file:$linenum: line too long\n";