summaryrefslogtreecommitdiff
path: root/www/upload
blob: 0a9cb60249a25696a14846d3edfa364f4acb5389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh 
#
# Upload gpsd docs
#
webdir=esr@shell.berlios.de:/home/groups/gpsd/htdocs
makeversion=`sed <../Makefile -n -e '/^VERSION *= *\(.*\)/s//\1/p'`

version=${1:-$makeversion}
echo "Uploading version $version of gpsd web documents"

sed -e "/@VERSION@/s//${version}/" -e "/@DATE@/s//`date '+%B %d, %Y'`/" <index.html.in >index.html

xmlto xhtml-nochunks ../gpsd.xml
xmlto xhtml-nochunks ../xgps.xml
xmlto xhtml-nochunks ../libgps.xml
xmlto xhtml-nochunks ../libgpsmm.xml
xmlto xhtml-nochunks ../libgpsd.xml
xmlto xhtml-nochunks ../gpsprof.xml
xmlto xhtml-nochunks ../gpsfake.xml
xmlto xhtml-nochunks ../sirfmon.xml
xmlto xhtml-nochunks ../rtcmdecode.xml
xmlto xhtml-nochunks ../gpsflash.xml
xmlto xhtml-nochunks ../rtcm-104.xml
xmlto xhtml-nochunks ../srec.xml
xmlto xhtml-nochunks replacing-nmea.xml
(cd performance; xmlto xhtml-nochunks performance.xml)
scp *.html *.png *.pdf *.gif performance/{*.html,*.txt,*.png} *.css *.js *.txt *.ebuild $webdir