version 1.7, 2006/11/07 17:32:10 |
version 1.11, 2007/05/04 21:57:34 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: release.sh,v 1.6 2006/11/07 17:09:19 andrew Exp $ |
# $RedRiver: release.sh,v 1.10 2007/05/04 20:56:34 andrew Exp $ |
# Copyright (c) 2002 - 2006, FenderQ |
# Copyright (c) 2002 - 2006, FenderQ |
# All rights reserved. |
# All rights reserved. |
# |
# |
|
|
|
|
DEST="/usr/dest" |
DEST="/usr/dest" |
RELEASE="/usr/release" |
RELEASE="/usr/release" |
CVSTAG=`uname -r | awk '{ sub("\\\.","_"); print "OPENBSD_" $0 }'` |
CVSTAG=${CVSTAG:=`uname -sr | tr '[:lower:] .' '[:upper:]_'`} |
#SOURCES="src ports XF4" |
#SOURCES="src ports XF4" |
#SOURCES="src ports" |
#SOURCES="src ports" |
SOURCES="src XF4" |
SOURCES="src ports XF4" |
|
|
# Anonymous CVS - http://www.openbsd.org/anoncvs.html |
# Anonymous CVS - http://www.openbsd.org/anoncvs.html |
CVSROOT="anoncvs@anoncvs3.usa.openbsd.org:/cvs" |
CVSROOT="anoncvs@anoncvs3.usa.openbsd.org:/cvs" |
|
|
update_sources() { |
update_sources() { |
echo "********** Update sources **********" |
echo "********** Update sources **********" |
for d in $SOURCES; do |
for d in $SOURCES; do |
cd /usr && cvs -q -z6 update -r$CVSTAG -Pd $d |
_cvstag=-r$CVSTAG |
|
if [ X"$CVSTAG" == X"HEAD" ]; then |
|
_cvstag=-A |
|
fi |
|
cd /usr && cvs -q -z6 update $_cvstag -Pd $d |
done |
done |
} |
} |
|
|
|
|
echo |
echo |
} |
} |
|
|
if [ `whoami` != "root" ]; then |
|
echo "You probably should be root instead of `whoami` to run this safely." |
|
exit 1 |
|
fi |
|
|
|
START=`date` |
START=`date` |
echo |
echo |
echo "***** OpenBSD - Release Building *****" |
echo "***** OpenBSD - Release Building *****" |
|
|
echo |
echo |
|
|
if [ $# = 0 ]; then usage; exit 1; fi |
if [ $# = 0 ]; then usage; exit 1; fi |
|
|
|
if [ `whoami` != "root" ]; then |
|
echo "You probably should be root instead of `whoami` to run this safely." |
|
exit 1 |
|
fi |
|
|
for i in $* |
for i in $* |
do |
do |