Skip to content

Commit b67f73c

Browse files
committed
rename check-layout.sh to check-num-pages.sh and fix
- uncomment the input argument assignment to variables
1 parent f02c0cd commit b67f73c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ handouts:
3838

3939
.PHONY: check
4040
check:
41-
./check-layout.sh cheatsheets.pdf 2
42-
./check-layout.sh handout-tips.pdf 1
43-
./check-layout.sh handout-beginner.pdf 1
44-
./check-layout.sh handout-intermediate.pdf 1
41+
./check-num-pages.sh cheatsheets.pdf 2
42+
./check-num-pages.sh handout-tips.pdf 1
43+
./check-num-pages.sh handout-beginner.pdf 1
44+
./check-num-pages.sh handout-intermediate.pdf 1
4545
./check-links.py cheatsheets.pdf
4646

4747
.PHONY: fonts

check-layout.sh renamed to check-num-pages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
# check-num-pages.sh [pdffile] [num_pages]
66

77
set -x
8-
# pdffile=$1
9-
# num_pages=$1
8+
pdffile=$1
9+
num_pages=$2
1010
[[ "$(pdfinfo $pdffile | grep Pages | awk '{print $2}')" == "$num_pages" ]] || exit 1

0 commit comments

Comments
 (0)