comparison makeWeb.sh @ 355:b233893b4c51

Add date of last change to bottom of web tune page.
author Jim Hague <jim.hague@acm.org>
date Mon, 19 Aug 2013 09:59:46 +0100
parents 27f29e8aafea
children 265539086836
comparison
equal deleted inserted replaced
354:073c4022efb1 355:b233893b4c51
80 credit=`$dir/abcfield.py --field N --contains "Credit:" $filename | sed -e "s/Credit: *//"` 80 credit=`$dir/abcfield.py --field N --contains "Credit:" $filename | sed -e "s/Credit: *//"`
81 creditvisibility="no" 81 creditvisibility="no"
82 if [ -n "$credit" ]; then 82 if [ -n "$credit" ]; then
83 creditvisibility="yes" 83 creditvisibility="yes"
84 fi 84 fi
85 lastchanged=`hg log --limit 1 --template "{date|shortdate}" $filename`
85 86
86 # Copy the ABC into the web. 87 # Copy the ABC into the web.
87 cp $filename $webdir 88 cp $filename $webdir
88 89
89 # Generate the tune web page. 90 # Generate the tune web page.
98 -e "s/@CHANGETITLE@/${changetitle//&/\&}/" \ 99 -e "s/@CHANGETITLE@/${changetitle//&/\&}/" \
99 -e "s/@CHANGETUNE@/${changefile/.abc/.html}/" \ 100 -e "s/@CHANGETUNE@/${changefile/.abc/.html}/" \
100 -e "s/@CHANGEVISIBILITY@/${changevisibility}/" \ 101 -e "s/@CHANGEVISIBILITY@/${changevisibility}/" \
101 -e "s/@CREDIT@/${credit}/" \ 102 -e "s/@CREDIT@/${credit}/" \
102 -e "s/@CREDITVISIBILITY@/${creditvisibility}/" \ 103 -e "s/@CREDITVISIBILITY@/${creditvisibility}/" \
104 -e "s/@LASTCHANGED@/${lastchanged}/" \
103 -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage 105 -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage
104 106
105 sed -e "s/@TITLE@/${title//&/\&}/" \ 107 sed -e "s/@TITLE@/${title//&/\&}/" \
106 -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output 108 -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output
107 done 109 done