aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-02-24 09:42:26 +0800
committerkris <kris@FreeBSD.org>2002-02-24 09:42:26 +0800
commitc3709b058b690b9367da510b003b48e92f045af7 (patch)
tree5e6c57eb2f4802fcd13281fd7fb8d5b502274350
parent1efbc45c9eaf2353009a1d22092e91454546f434 (diff)
downloadfreebsd-ports-gnome-c3709b058b690b9367da510b003b48e92f045af7.tar.gz
freebsd-ports-gnome-c3709b058b690b9367da510b003b48e92f045af7.tar.zst
freebsd-ports-gnome-c3709b058b690b9367da510b003b48e92f045af7.zip
Axe support for 2.2.x and 3.x branches, and make this script more robust
by removing assumptions about how and from where it is called.
-rwxr-xr-xTools/portbuild/scripts/makeduds22
1 files changed, 8 insertions, 14 deletions
diff --git a/Tools/portbuild/scripts/makeduds b/Tools/portbuild/scripts/makeduds
index 914d865d7957..a8f37f1125a6 100755
--- a/Tools/portbuild/scripts/makeduds
+++ b/Tools/portbuild/scripts/makeduds
@@ -1,6 +1,11 @@
#!/bin/sh
# usage: $0 branch
+# configurable variables
+pb=/var/portbuild
+
+. ${pb}/portbuild.conf
+
# -j# to make duds
DUDSJOBS=4
@@ -12,18 +17,6 @@ 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
@@ -47,8 +40,8 @@ case "x$1" in
;;
esac
-export PORTSDIR=$(pwd)
-duds=../../${branch}/duds
+export PORTSDIR=${pb}/${branch}/ports
+duds=${pb}/${branch}/duds
if [ "x$NODUMMY" = "x" ]; then
unset XFREE86_VERSION
@@ -65,6 +58,7 @@ export PARALLEL_PACKAGE_BUILD=t
export SRCBASE=/var/portbuild/${branch}/src
#export NO_RESTRICTED=t
#export FOR_CDROM=t
+cd ${PORTSDIR}
make -j${DUDSJOBS} ignorelist ECHO_MSG=true > ${duds} || exit 1
sort ${duds} > ${duds}.tmp
mv -f ${duds}.tmp ${duds}