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:00 +00:00
|
|
|
|
|
|
|
# -j# to make index
|
1999-10-10 11:32:46 +00:00
|
|
|
INDEXJOBS=1
|
1999-07-30 06:53:00 +00:00
|
|
|
|
1999-06-22 07:45:34 +00:00
|
|
|
usage () {
|
|
|
|
echo "usage: makeindex 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
|
2000-08-29 08:12:16 +00:00
|
|
|
export OSREL=3.5
|
|
|
|
export OSVERSION=350001
|
1999-06-22 07:45:34 +00:00
|
|
|
;;
|
|
|
|
x4)
|
|
|
|
branch=4
|
|
|
|
export PORTOBJFORMAT=elf
|
2000-08-29 08:12:16 +00:00
|
|
|
# export OSREL=4.0
|
|
|
|
# export OSVERSION=400018
|
|
|
|
;;
|
|
|
|
x5)
|
|
|
|
branch=5
|
|
|
|
export PORTOBJFORMAT=elf
|
|
|
|
export OSREL=5.0
|
|
|
|
export OSVERSION=500011
|
1999-06-22 07:45:34 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
usage
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1998-12-28 13:27:27 +00:00
|
|
|
export PORTSDIR=$(pwd)
|
1999-06-22 07:45:34 +00:00
|
|
|
|
2000-09-26 23:35:36 +00:00
|
|
|
if [ "x$NODUMMY" = "x" ]; then
|
|
|
|
unset XFREE86_VERSION
|
|
|
|
unset MOTIF_OPEN
|
|
|
|
else
|
|
|
|
export XFREE86_VERSION=4
|
|
|
|
export MOTIF_OPEN=t
|
|
|
|
fi
|
|
|
|
|
1999-06-22 07:45:34 +00:00
|
|
|
unset DISPLAY
|
|
|
|
export BATCH=t
|
|
|
|
export HAVE_MOTIF=t
|
|
|
|
export PACKAGE_BUILDING=t
|
1998-12-28 13:27:27 +00:00
|
|
|
export PARALLEL_PACKAGE_BUILD=t
|
2000-08-29 08:12:16 +00:00
|
|
|
#export NO_RESTRICTED=t
|
1999-06-22 07:45:34 +00:00
|
|
|
#export FOR_CDROM=t
|
1999-07-30 06:53:00 +00:00
|
|
|
#export INDEX_NOSORT=t
|
|
|
|
make -j${INDEXJOBS} index
|
2000-08-29 08:12:16 +00:00
|
|
|
# remove extra spaces in dependency list -- this could cause problems
|
|
|
|
sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' INDEX > INDEX.tmp
|
|
|
|
mv -f INDEX.tmp INDEX
|