Mercurial > dottes
comparison makeWeb.sh @ 212:9502f4883006
When listing titles for web, straighten out ones of the form 'Something, The'.
Basically anything with a ', <first>' has than removed and the first prepended.
author | Jim Hague <jim.hague@laicatc.com> |
---|---|
date | Mon, 18 Feb 2013 22:37:46 +0000 |
parents | 540511b14c73 |
children | a8a46fd79d5c |
comparison
equal
deleted
inserted
replaced
211:9da75d87e93b | 212:9502f4883006 |
---|---|
48 while read filename | 48 while read filename |
49 do | 49 do |
50 title=`$dir/abcfield.py --field T --html $filename` | 50 title=`$dir/abcfield.py --field T --html $filename` |
51 name=`basename $filename .abc` | 51 name=`basename $filename .abc` |
52 | 52 |
53 # Restore titles like 'Exploding Potato, The' to the | |
54 # expected 'The Exploding Potato'. | |
55 title=`echo $title | sed -e "s/\(.*\), *\(.*\)/\2 \1/"` | |
56 | |
53 # Copy tune PDF from common graphics. | 57 # Copy tune PDF from common graphics. |
54 cp $graphicsdir/${name}.pdf $webdir | 58 cp $graphicsdir/${name}.pdf $webdir |
55 | 59 |
56 # And copy the ABC. | 60 # And copy the ABC. |
57 cp $filename $webdir | 61 cp $filename $webdir |