1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/Tools/portbuild/scripts/makeindex
Satoshi Asami 411ba40b8e When NODUMMY is defined, set XFREE86_VERSION to 4 and MOTIF_OPEN to t.
These are for testing the split-up XFree86-4 ports and open-motif.
2000-09-26 23:35:36 +00:00

66 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# usage: $0 branch
# -j# to make index
INDEXJOBS=1
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
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)
if [ "x$NODUMMY" = "x" ]; then
unset XFREE86_VERSION
unset MOTIF_OPEN
else
export XFREE86_VERSION=4
export MOTIF_OPEN=t
fi
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
#export INDEX_NOSORT=t
make -j${INDEXJOBS} index
# 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