initial
This commit is contained in:
parent
6533d835fa
commit
b6f103adcc
2 changed files with 38 additions and 0 deletions
16
build/build.sh
Executable file
16
build/build.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
die () { echo "$*" >&2; exit 1; }
|
||||
askyn () { read ans?"$1 [y/n] "; if [ $ans == "y" ]; then return 0; else return 1;fi }
|
||||
|
||||
if [ $TERM != "screen" ]; then
|
||||
if (! askyn "You sure you don't want to run this in a screen session?" ); then
|
||||
die "Exiting...";
|
||||
fi
|
||||
fi
|
||||
|
||||
PATH=$PATH:/usr/sbin:/sbin
|
||||
export PATH
|
||||
|
||||
cd /usr/obj && mkdir -p .old && sudo mv * .old && sudo rm -rf .old &
|
||||
cd /usr/src && nice make obj || die "make obj failed"
|
||||
nice make build || die "make build failed"
|
||||
22
build/release.sh
Executable file
22
build/release.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
die () { echo "$*" >&2; exit 1; }
|
||||
askyn () { read ans?"$1 [y/n] "; if [ $ans == "y" ]; then return 0; else return 1;fi }
|
||||
|
||||
if [ $TERM != "screen" ]; then
|
||||
if (! askyn "You sure you don't want to run this in a screen session?" ); then
|
||||
die "Exiting...";
|
||||
fi
|
||||
fi
|
||||
|
||||
export DATE=`cat ${HOME}/.cvsup/src_date`
|
||||
|
||||
export PATH=$PATH:/usr/sbin:/sbin
|
||||
export DESTDIR=/home/build/dest-$DATE
|
||||
export RELEASEDIR=/home/build/release-$DATE
|
||||
|
||||
cd /usr/src/distrib/crunch && make clean && make && make install
|
||||
test -d ${DESTDIR} && mv ${DESTDIR} ${DESTDIR}- && rm -rf ${DESTDIR}- &
|
||||
mkdir -p ${DESTDIR} ${RELEASEDIR}
|
||||
cd /usr/src/etc && nice make release || die "make release failed"
|
||||
cd /usr/src/distrib/sets && csh checkflist
|
||||
unset RELEASEDIR DESTDIR
|
||||
Loading…
Add table
Add a link
Reference in a new issue