aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-04-11 19:31:33 +0800
committerpav <pav@FreeBSD.org>2008-04-11 19:31:33 +0800
commitbc6a6da4c423f7de7f50258814a8a582d7cb13a5 (patch)
treef2828c498a165182bda560ed321e18eeef25bdac /Tools
parentdf399e64777773ae4b8b2b8f2ec3184791ebf8cd (diff)
downloadfreebsd-ports-gnome-bc6a6da4c423f7de7f50258814a8a582d7cb13a5.tar.gz
freebsd-ports-gnome-bc6a6da4c423f7de7f50258814a8a582d7cb13a5.tar.zst
freebsd-ports-gnome-bc6a6da4c423f7de7f50258814a8a582d7cb13a5.zip
Sync with pointyhat (reorg)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/portbuild/scripts/buildenv18
1 files changed, 9 insertions, 9 deletions
diff --git a/Tools/portbuild/scripts/buildenv b/Tools/portbuild/scripts/buildenv
index cf4dd7f6775e..00bebb3306d1 100644
--- a/Tools/portbuild/scripts/buildenv
+++ b/Tools/portbuild/scripts/buildenv
@@ -7,6 +7,15 @@ buildenv () {
arch=$2
branch=$3
+ # Have to use realpath because 'make index' doesn't deal with symlinks in PORTSDIR
+ # - kk 020311
+ export PORTSDIR=$(realpath ${pb}/${arch}/${branch}/ports)
+ export SRCBASE=$(realpath ${pb}/${arch}/${branch}/src)
+
+ export OSVERSION=$(awk '/^#define __FreeBSD_version/ {print $3}' < ${SRCBASE}/sys/sys/param.h)
+ export OSREL=$(awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
+ export BRANCH=$(awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
+
case "x$branch" in
x5)
export INDEXFILE=INDEX-5
@@ -53,19 +62,10 @@ buildenv () {
export PKGSUFFIX=.tbz
export PKGZIPCMD=bzip2
export X_WINDOW_SYSTEM=xorg
-
#export USA_RESIDENT=yes
- # Have to use realpath because 'make index' doesn't deal with symlinks in PORTSDIR
- # - kk 020311
- export PORTSDIR=$(realpath ${pb}/${arch}/${branch}/ports)
- export SRCBASE=$(realpath ${pb}/${arch}/${branch}/src)
export SRCPREFIX=${SRCBASE} #XXX Which one is canonical?
- export OSVERSION=$(awk '/^#define __FreeBSD_version/ {print $3}' < ${SRCBASE}/sys/sys/param.h)
- export OSREL=$(awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
- export BRANCH=$(awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
-
export __MAKE_CONF=${pb}/${arch}/make.conf
export DISTDIR=${pb}/${arch}/${branch}/distfiles