Annotation of openbsd/update_openbsd/upload_release, Revision 1.9
1.1 andrew 1: #!/bin/sh
2:
1.3 andrew 3: RSYNC=`which rsync`
4:
5: if [ $? != 0 ]; then
6: sudo pkg_add -i rsync
7: RSYNC=`which rsync`
8: if [ $? != 0 ]; then
9: echo RSYNC not installed!
10: exit
11: fi
12: fi
13:
1.9 ! andrew 14: . /etc/release.conf
! 15: RELEASEDIR=$RELEASE
1.1 andrew 16:
1.7 andrew 17: ls $RELEASEDIR | grep -v '^site' > $RELEASEDIR/index.txt
1.6 andrew 18: rsync -avP $RELEASEDIR/ \
1.7 andrew 19: --files-from ${RELEASEDIR}/index.txt \
1.6 andrew 20: us.holligan.net:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/
21:
1.5 andrew 22: ls $RELEASEDIR > $RELEASEDIR/index.txt
1.4 andrew 23: rsync -avP $RELEASEDIR/ \
1.7 andrew 24: --files-from ${RELEASEDIR}/index.txt \
1.8 andrew 25: rrlhcsta0100:/var/www/ftp/pub/OpenBSD/`uname -r`/`machine`/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>