For those who are interested, here is the script I use:
#!/bin/bash
(
PATH="/usr/i586-mingw32msvc/bin:$PATH"
cd /opt/odamex-win32
make -f Makefile.win clean
svn cleanup
let REVISION=`svn info | grep 'Revision: ' | sed 's/Revision: //'`+1
if [ -n "`svn update -r $REVISION | grep "Updated to revision"`" ]; then
make -f Makefile.win client server
i586-mingw32msvc-strip bin/*.exe
zip -j odamex-win32-r$REVISION.zip bin/odamex.exe bin/odasrv.exe \
odamex.wad odasrv.cfg /usr/i586-mingw32msvc/lib/SDL.dll \
/usr/i586-mingw32msvc/lib/SDL_mixer.dll README
curlftpfs ftp.onid.oregonstate.edu /media/onid
mv odamex-win32-r*.zip /media/onid/public_html/odamex-win32/
rm `ls -tr /media/onid/public_html/odamex-win32/* | head -n-20`
fusermount -u /media/onid
make -f Makefile.win clean
fi
) > /opt/update-odamex-win32.log 2>&1
Curlftpfs will read ~/.netrc for the ftp server username and address.
machine ftp.onid.oregonstate.edu
login xxxxxx
password xxxxxx
I have cron run this every 10 minutes.
# m h dom mon dow command
*/10 * * * * /opt/update-odamex-win32