1998-12-28 13:27:27 +00:00
|
|
|
#!/bin/sh
|
1999-06-22 07:45:34 +00:00
|
|
|
# usage: $0 branch
|
1999-07-30 06:53:31 +00:00
|
|
|
|
|
|
|
# -j# to make duds
|
|
|
|
DUDSJOBS=4
|
|
|
|
|
1999-06-22 07:45:34 +00:00
|
|
|
usage () {
|
|
|
|
echo "usage: makeduds branch"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
if [ $# != 1 ]; then
|
|
|
|
usage
|
|
|
|
fi
|
|
|
|
case "x$1" in
|
|
|
|
x2.2)
|
|
|
|
branch=2.2
|
|
|
|
export PORTOBJFORMAT=aout
|
|
|
|
export OSREL=2.2.8
|
|
|
|
export OSVERSION=228001
|
|
|
|
;;
|
|
|
|
x3)
|
|
|
|
branch=3
|
|
|
|
export PORTOBJFORMAT=elf
|
1999-09-11 00:09:22 +00:00
|
|
|
# export OSREL=3.3
|
|
|
|
# export OSVERSION=330000
|
1999-06-22 07:45:34 +00:00
|
|
|
;;
|
|
|
|
x4)
|
|
|
|
branch=4
|
|
|
|
export PORTOBJFORMAT=elf
|
|
|
|
export OSREL=4.0
|
1999-09-11 00:09:22 +00:00
|
|
|
export OSVERSION=400009
|
1999-06-22 07:45:34 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
usage
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
export PORTSDIR=$(pwd)
|
1999-07-30 06:53:31 +00:00
|
|
|
duds=../../${branch}/duds
|
1999-06-22 07:45:34 +00:00
|
|
|
|
1998-12-28 13:27:27 +00:00
|
|
|
unset DISPLAY
|
1999-06-22 07:45:34 +00:00
|
|
|
export BATCH=t
|
1998-12-28 13:27:27 +00:00
|
|
|
export HAVE_MOTIF=t
|
1999-06-22 07:45:34 +00:00
|
|
|
export PACKAGE_BUILDING=t
|
1998-12-28 13:27:27 +00:00
|
|
|
export PARALLEL_PACKAGE_BUILD=t
|
1999-06-22 07:45:34 +00:00
|
|
|
export NO_RESTRICTED=t
|
|
|
|
#export FOR_CDROM=t
|
1999-07-30 06:53:31 +00:00
|
|
|
make -j${DUDSJOBS} ignorelist ECHO_MSG=true > ${duds} || exit 1
|
|
|
|
sort ${duds} > ${duds}.tmp
|
|
|
|
mv -f ${duds}.tmp ${duds}
|