[BACK]Return to upload_release CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

File: [local] / openbsd / update_openbsd / upload_release (download)

Revision 1.7, Wed Apr 21 22:21:22 2010 UTC (14 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.6: +3 -1 lines

really only include the files we want

#!/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

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 \
	rrlhcmp30100:/home/ftp/pub/OpenBSD/`uname -r`/`machine`/