#!/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=shell.berlios.de:/home/groups/gpsd/htdocs #cgidir=shell.berlios.de:/home/groups/gpsd/cgi-bin # Ensure all derived HTML and checksums are up to date. (cd ..; make 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 #scp gps_report.cgi $cgidir fi # End