=================================================================== RCS file: /cvs/openbsd/update_openbsd/upload_release,v retrieving revision 1.1 retrieving revision 1.8 diff -u -r1.1 -r1.8 --- openbsd/update_openbsd/upload_release 2006/11/07 17:32:10 1.1 +++ openbsd/update_openbsd/upload_release 2011/06/07 19:09:48 1.8 @@ -1,5 +1,24 @@ #!/bin/sh +RSYNC=`which rsync` + +if [ $? != 0 ]; then + sudo pkg_add -i rsync + RSYNC=`which rsync` + if [ $? != 0 ]; then + echo RSYNC not installed! + exit + fi +fi + RELEASEDIR=/usr/release -rsync -av $RELEASEDIR/ rrlhcmp30100:/home/ftp/pub/OpenBSD/`uname -r`/`machine`/ +ls $RELEASEDIR | grep -v '^site' > $RELEASEDIR/index.txt +rsync -avP $RELEASEDIR/ \ + --files-from ${RELEASEDIR}/index.txt \ + us.holligan.net:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/ + +ls $RELEASEDIR > $RELEASEDIR/index.txt +rsync -avP $RELEASEDIR/ \ + --files-from ${RELEASEDIR}/index.txt \ + rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/