summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/summarize
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdoc/posix1003.1/summarize7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/posix1003.1/summarize b/doc/posix1003.1/summarize
index fc8631894a..a092b4a71c 100755
--- a/doc/posix1003.1/summarize
+++ b/doc/posix1003.1/summarize
@@ -182,8 +182,11 @@ summarize_chapter()
fi
}
-chapters="ch01.t ch02.t ch03.t ch04.t ch05.t ch06.t ch07.t ch08.t \
- ch09.t ch10.t ch11.t ch12.t ch13.t ch14.t ch15.t ch16.t ch17.t ch18.t"
+if test $# -lt 1; then
+ echo "Missing arguments"
+ exit 1
+fi
+chapters="$*"
# go through the chapters one at a time
for chapter in ${chapters}