summaryrefslogtreecommitdiff
path: root/gen.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-05-04 09:48:27 -0700
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-05-04 09:48:27 -0700
commit247f5d615539784c46b5c7c5b35b6ee348e04151 (patch)
tree6744bd1584ad1239417e4c8e148f98d1d27909eb /gen.sh
initial commitHEADmaster
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