Updated to use an environmentvar (BUILDPKG_BASE) to locate the buildpkg root

This commit is contained in:
Tom G. Christensen
2003-07-29 19:25:49 +00:00
parent abb51c4da3
commit a1980fc242
4 changed files with 14 additions and 3 deletions

View File

@@ -2,7 +2,15 @@
# Global function library for buildpkg
#
# This file is designed to be sourced by pr. package buildscripts
#
# We rely on an environment variable called BUILDPKG_BASE to
# define the root of the buildpkg tree
#
buildpkgbase=${BUILDPKG_BASE-'x'}
if [ "$buildpkgbase" == "x" ]; then
echo "You *Must* define BUILDPKG_BASE environment variable"
exit 1
fi
# Variables that *must* be overridden pr. package
# They are used to construct paths and more so they
@@ -44,7 +52,7 @@ LS=/usr/bin/ls
EXPR=/usr/bin/expr
# Define defaults
buildpkgbase=${HOME}/buildpkg
buildpkgbase=$BUILDPKG_BASE
stagedir=$buildpkgbase/$topdir/stage
srcdir=$buildpkgbase/$topdir/src
patchdir=$srcdir # Allow the possibility of easily putting a load of patches in a different location