diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-04-11 11:31:33 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-04-11 11:31:33 +0000 |
commit | 2545b7c79ef9280425a266d2be6841f9c63a423d (patch) | |
tree | 2bfafc4b82a2edf4e6ae5f433789644d15e213f0 /Tools | |
parent | 287bd194772fa7d512d72315b6d4ffcf9de4afdd (diff) | |
download | ports-2545b7c79ef9280425a266d2be6841f9c63a423d.tar.gz ports-2545b7c79ef9280425a266d2be6841f9c63a423d.zip |
Notes
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/portbuild/scripts/buildenv | 18 |
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 |