version 1.6, 2006/11/07 17:09:19 |
version 1.13, 2007/11/19 22:08:37 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: release.sh,v 1.5 2006/10/13 18:18:51 andrew Exp $ |
# $RedRiver: release.sh,v 1.12 2007/09/09 21:40:41 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" |
|
#CVSROOT="anoncvs@anoncvs1.usa.openbsd.org:/cvs" |
|
CVSROOT="anoncvs@rt.fm:/cvs" |
export CVSROOT |
export CVSROOT |
|
|
install_sources() { |
install_sources() { |
|
|
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 |
} |
} |
|
|
|
|
mkdir -p $DESTDIR $RELEASEDIR |
mkdir -p $DESTDIR $RELEASEDIR |
cd /usr/src/etc && nice make release |
cd /usr/src/etc && nice make release |
cd /usr/src/distrib/sets && sh checkflist |
cd /usr/src/distrib/sets && sh checkflist |
|
ls $RELEASEDIR | grep -v index.txt | sort > $RELEASEDIR/index.txt |
unset DESTDIR RELEASEDIR |
unset DESTDIR RELEASEDIR |
} |
} |
|
|
|
|
mkdir -p $DESTDIR $RELEASEDIR |
mkdir -p $DESTDIR $RELEASEDIR |
cd /usr/Xbuild && nice make release |
cd /usr/Xbuild && nice make release |
cd /usr/Xbuild/distrib/sets && sh checkflist |
cd /usr/Xbuild/distrib/sets && sh checkflist |
|
ls $RELEASEDIR | grep -v index.txt | sort > $RELEASEDIR/index.txt |
unset DESTDIR RELEASEDIR |
unset DESTDIR RELEASEDIR |
} |
} |
|
|
|
|
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 [ `id -u` != "0" ]; 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 |