summaryrefslogtreecommitdiff
path: root/gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gen.sh')
-rw-r--r--gen.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/gen.sh b/gen.sh
new file mode 100644
index 0000000..519b2a6
--- /dev/null
+++ b/gen.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+make view.js view.css
+for issue in "$@"; do
+ echo "=> making issue $issue"
+ {
+ list=`echo $issue/{index.php,view.css,view.js}`
+ list+=' '
+ list+=`ls -1 $issue/Page*.pdf|sed -r 's/(.*)\.pdf$/\1.jpg \1.small.jpg/'`
+ make $list
+ } 2>&1|sed 's/./ &/'
+done