1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/Tools/portbuild/scripts/makeduds
Satoshi Asami 199691e133 Add branch=5 case and update some variables. Don't set NO_RESTRICTED,
this will be passed down by calling scripts if necessary.
2000-08-29 08:04:13 +00:00

57 lines
934 B
Bash
Executable File

#!/bin/sh
# usage: $0 branch
# -j# to make duds
DUDSJOBS=4
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
export OSREL=3.5
export OSVERSION=350001
;;
x4)
branch=4
export PORTOBJFORMAT=elf
# export OSREL=4.0
# export OSVERSION=400018
;;
x5)
branch=5
export PORTOBJFORMAT=elf
export OSREL=5.0
export OSVERSION=500011
;;
*)
usage
;;
esac
export PORTSDIR=$(pwd)
duds=../../${branch}/duds
unset DISPLAY
export BATCH=t
export HAVE_MOTIF=t
export PACKAGE_BUILDING=t
export PARALLEL_PACKAGE_BUILD=t
#export NO_RESTRICTED=t
#export FOR_CDROM=t
make -j${DUDSJOBS} ignorelist ECHO_MSG=true > ${duds} || exit 1
sort ${duds} > ${duds}.tmp
mv -f ${duds}.tmp ${duds}