=================================================================== RCS file: /cvs/openbsd/update_openbsd/upload_release,v retrieving revision 1.2 retrieving revision 1.10 diff -u -r1.2 -r1.10 --- openbsd/update_openbsd/upload_release 2006/11/29 16:45:33 1.2 +++ openbsd/update_openbsd/upload_release 2013/01/03 03:29:10 1.10 @@ -1,5 +1,32 @@ #!/bin/sh -RELEASEDIR=/usr/release +RSYNC=`which rsync` -rsync -avP $RELEASEDIR/ rrlhcmp30100:/home/ftp/pub/OpenBSD/`uname -r`/`machine`/ +if [ $? != 0 ]; then + sudo pkg_add -i rsync + RSYNC=`which rsync` + if [ $? != 0 ]; then + echo RSYNC not installed! + exit + fi +fi + +. /etc/release.conf +RELEASEDIR=$RELEASE + +ls $RELEASEDIR | grep -v '^site' > $RELEASEDIR/index.txt +rsync -avP $RELEASEDIR/ \ + --files-from ${RELEASEDIR}/index.txt \ + us.holligan.net:/var/www/ftp/pub/OpenBSD-stable/`uname -r`/`machine`/ + +rsync -avP /usr/ports/packages/`machine`/ftp/ \ + us.holligan.net:/var/www/ftp/pub/OpenBSD-stable/`uname -r`/packages/`machine`/ + +ls $RELEASEDIR > $RELEASEDIR/index.txt +rsync -avP $RELEASEDIR/ \ + --files-from ${RELEASEDIR}/index.txt \ + rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/ + +rsync -avP /usr/ports/packages/`machine`/all/ \ + rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/packages/`machine`/ +