Mercurial > dottes
comparison makeWebItems.sh @ 43:d92717f8130c
First go at producing a very simple website.
Templating done with sed, and minimal HTML.
author | Jim Hague <jim.hague@laicatc.com> |
---|---|
date | Sun, 04 Mar 2012 12:39:12 +0000 |
parents | |
children | 6f4667d1372d |
comparison
equal
deleted
inserted
replaced
42:0e7d2830cb8b | 43:d92717f8130c |
---|---|
1 #!/bin/bash | |
2 # | |
3 # Make items required for the website but not for the book. | |
4 # They go into web/<book>. | |
5 # | |
6 | |
7 if [ $# != 1 ]; then | |
8 echo "Usage: makeWebItems.sh <book dir name>" | |
9 exit 1 | |
10 fi | |
11 | |
12 dir=`pwd` | |
13 | |
14 booke=$dir/$1 | |
15 builddir=$dir/web/$1 | |
16 graphicsdir=$dir/graphics/$1 | |
17 | |
18 mkdir -p $builddir | |
19 | |
20 # Now, for each tune, make the tune JPG and sound. | |
21 find $booke -name "*.abc" | sort | | |
22 while read filename | |
23 do | |
24 name=`basename $filename .abc` | |
25 convert $graphicsdir/${name}.eps $builddir/${name}.jpg | |
26 | |
27 abc2midi $filename -o $builddir/${name}.mid | |
28 timidity -Ow -o $builddir/${name}.wav $builddir/${name}.mid | |
29 lame --quiet $builddir/${name}.wav $builddir/${name}.mp3 | |
30 rm $builddir/${name}.wav | |
31 done | |
32 |