summaryrefslogtreecommitdiff
path: root/runoff
diff options
context:
space:
mode:
authorAustin Clements <[email protected]>2010-08-31 17:33:04 -0400
committerAustin Clements <[email protected]>2010-08-31 17:33:04 -0400
commitc7ceb71d5757db21a2228ec33bde2f4da1677094 (patch)
tree4fb9440f2f7dbe33e2266b0a1a48cb63e3083600 /runoff
parent51e2a7b324020a90bf963d514a0959d930120d71 (diff)
downloadxv6-labs-c7ceb71d5757db21a2228ec33bde2f4da1677094.tar.gz
xv6-labs-c7ceb71d5757db21a2228ec33bde2f4da1677094.tar.bz2
xv6-labs-c7ceb71d5757db21a2228ec33bde2f4da1677094.zip
Sheet 1 is a right page now because of the (much) longer cross-ref
Diffstat (limited to 'runoff')
-rwxr-xr-xrunoff11
1 files changed, 6 insertions, 5 deletions
diff --git a/runoff b/runoff
index 21ee8ed..0e0e49e 100755
--- a/runoff
+++ b/runoff
@@ -89,16 +89,17 @@ perl -e '
print STDERR "Have no toc for $file\n";
next;
}
- # this assumes that sheet 1 of code is a left page
- # double-check the PDF
+ # this assumes that sheet 1 of code is a right page
+ # double-check the PDF. swap the two regexps below
+ # otherwise.
if(!$leftwarn++) {
- print STDERR "assuming that sheet 1 is a left page. double-check!\n";
+ print STDERR "assuming that sheet 1 is a right page. double-check!\n";
}
- if($what eq "left" && !($toc{$file} =~ /^\d[13579]0/)){
+ if($what eq "left" && !($toc{$file} =~ /^\d[02468]0/)){
print STDERR "$file does not start on a fresh left page [$toc{$file}]\n";
}
# why does this not work if I inline $x in the if?
- $x = ($toc{$file} =~ /^\d[02468]0/);
+ $x = ($toc{$file} =~ /^\d[13579]0/);
if($what eq "right" && !$x){
print STDERR "$file does not start on a fresh right page [$toc{$file}] [$x]\n";
}