Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xv6-19au
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
csep551
xv6-19au
Commits
9d7a63e0
Commit
9d7a63e0
authored
14 years ago
by
Austin Clements
Browse files
Options
Downloads
Patches
Plain Diff
Specify in runoff.spec which side sheet 1 is on, since it keeps changing
parent
0fa1ab63
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
runoff
+9
-8
9 additions, 8 deletions
runoff
runoff.spec
+3
-1
3 additions, 1 deletion
runoff.spec
with
12 additions
and
9 deletions
runoff
+
9
−
8
View file @
9d7a63e0
...
...
@@ -58,6 +58,13 @@ perl -e '
next;
}
if(/sheet1: (left|right)$/){
print STDERR "assuming that sheet 1 is a $1 page. double-check!\n";
$left = $1 eq "left" ? "13579" : "02468";
$right = $1 eq "left" ? "02468" : "13579";
next;
}
if(/even: (.*)/){
$file = $1;
if(!defined($toc{$file})){
...
...
@@ -90,17 +97,11 @@ perl -e '
print STDERR "Have no toc for $file\n";
next;
}
# 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 right page. double-check!\n";
}
if($what eq "left" && !($toc{$file} =~ /^\d[02468]$tens/)){
if($what eq "left" && !($toc{$file} =~ /^\d[$left]$tens/)){
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[
13579
]$tens/);
$x = ($toc{$file} =~ /^\d[
$right
]$tens/);
if($what eq "right" && !$x){
print STDERR "$file does not start on a fresh right page [$toc{$file}] [$x]\n";
}
...
...
This diff is collapsed.
Click to expand it.
runoff.spec
+
3
−
1
View file @
9d7a63e0
sheet1: left
# types.h either
# param.h either
# defs.h either
...
...
@@ -16,7 +18,7 @@ even: main.c
# odd: init.c
# spinlock.h either
righ
t: spinlock.c # mild preference
lef
t: spinlock.c # mild preference
even: proc.h # mild preference
# goal is to have two action-packed 2-page spreads,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment