blob: 7c798c8037a91ee6668c85392cd7d0c3ddd05aba (
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
|
#!/bin/sh
#
# Upload gpsd website contents.
# Plesase do not introduce bashims into this script.
#
# No CGI copy yet, hosting site won't let us send mail
#
webdir=@WEBUPLOAD@
# Ensure all derived HTML and checksums are up to date.
(cd ..; scons website)
if [ $1 ]
then
for f in $*; do scp $f $webdir/$f; done
else
eligible=`ls *.html *.png *.gif *.css *.js *.txt \
performance/*.html performance/*.txt performance/*.png \
../TODO ../NEWS`
if [ -e .upload-stamp ]
then
eligible=`find $eligible -newer .upload-stamp`
fi
if [ -z "$eligible" ]
then
echo "Website is up to date."
else
scp $eligible $webdir && touch .upload-stamp
fi
fi
# End
|