summaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-11-18 10:12:47 +0000
committerkris <kris@FreeBSD.org>2002-11-18 10:12:47 +0000
commita2af941e76d45719c46957341ff62d4cad1f9f35 (patch)
tree9dd804d7afded85e3b4a6fbbe3470c6195754b8b /Tools/portbuild
parent8831775cfc8903a01f775935e5f389c5a65285eb (diff)
downloadFreeBSD-ports-a2af941e76d45719c46957341ff62d4cad1f9f35.zip
FreeBSD-ports-a2af941e76d45719c46957341ff62d4cad1f9f35.tar.gz
Convert this to buildenv to make it actually work properly.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/makeduds45
1 files changed, 7 insertions, 38 deletions
diff --git a/Tools/portbuild/scripts/makeduds b/Tools/portbuild/scripts/makeduds
index 8d3999e..daa5075 100755
--- a/Tools/portbuild/scripts/makeduds
+++ b/Tools/portbuild/scripts/makeduds
@@ -6,6 +6,8 @@ pb=/var/portbuild
. ${pb}/portbuild.conf
+. ${pb}/scripts/buildenv
+
# -j# to make duds
DUDSJOBS=4
@@ -16,48 +18,15 @@ usage () {
if [ $# != 1 ]; then
usage
fi
-case "x$1" in
- x4)
- branch=4
- export PORTOBJFORMAT=elf
- export OSREL=4.5
- export OSVERSION=450002
- ;;
- x4-exp)
- branch=4-exp
- export PORTOBJFORMAT=elf
- export OSREL=4.5
- export OSVERSION=450002
- ;;
- x5)
- branch=5
- export PORTOBJFORMAT=elf
- export OSREL=5.0
- export OSVERSION=500031
- ;;
- *)
- usage
- ;;
-esac
-export PORTSDIR=${pb}/${branch}/ports
+branch=$1
+
+buildenv ${pb} ${branch}
+
duds=${pb}/${branch}/duds
-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 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
OpenPOWER on IntegriCloud