summaryrefslogtreecommitdiff
path: root/www/upload
blob: 085dee44cb585934f8cea205e2102f7701daccf2 (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
28
29
30
31
32
33
34
35
36
#!/bin/sh 
#
# Upload gpsd docs
#
webdir=esr@shell.berlios.de:/home/groups/gpsd/htdocs

if [ $1 ]
then
    scp $* $webdir
else
    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 ../gps.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 ../gpsctl.xml
    xmlto xhtml-nochunks ../sirfmon.xml
    xmlto xhtml-nochunks ../rtcmdecode.xml
    xmlto xhtml-nochunks ../gpspipe.xml
    xmlto xhtml-nochunks ../gpsflash.xml
    xmlto xhtml-nochunks ../rtcm-104.xml
    xmlto xhtml-nochunks ../srec.xml
    xmlto xhtml-nochunks replacing-nmea.xml
    xmlto xhtml-nochunks writing-a-driver.xml
    (cd performance; xmlto xhtml-nochunks performance.xml)
    scp start-kismet *.html *.png *.pdf *.gif performance/{*.html,*.txt,*.png} *.css *.js *.txt *.ebuild $webdir
fi