forked from CryHavoc/dottes
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.
This commit is contained in:
parent
d1c4ec0c59
commit
e705f35e5e
|
@ -50,6 +50,10 @@ find $bookedir -name "*.abc" | sort |
|
|||
title=`$dir/abcfield.py --field T --html $filename`
|
||||
name=`basename $filename .abc`
|
||||
|
||||
# Restore titles like 'Exploding Potato, The' to the
|
||||
# expected 'The Exploding Potato'.
|
||||
title=`echo $title | sed -e "s/\(.*\), *\(.*\)/\2 \1/"`
|
||||
|
||||
# Copy tune PDF from common graphics.
|
||||
cp $graphicsdir/${name}.pdf $webdir
|
||||
|
||||
|
|
Loading…
Reference in New Issue