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

@ -15,7 +15,7 @@ source[0]=$topdir-$version.tar.gz
patch[0]=
# Source function library
. ${HOME}/buildpkg/scripts/buildpkg.functions
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
# Fill in pkginfo values if necessary
# using pkgname,name,pkgcat,pkgvendor & pkgdesc

View File

@ -3,6 +3,14 @@
#
# 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

View File

@ -24,7 +24,7 @@ declare -a pctop # Array of toplevel product categories (image)
declare -a pdtop # Array of matching descriptions
#override defaults
pkgprefix=sb_
pkgprefix=tgc_
pkgname=$pkgprefix$topdir
os=irix`$UNAME -r`

View File

@ -1,4 +1,6 @@
bin sw.base keep root sys Base Software
sbin sw.base 0744 root sys Base Software
etc sw.base keep root sys Base Software
libexec sw.base keep root sys Base Software
mips-sgi-irix5.3 sw.base keep root sys Base Software
mips-sgi-irix6.2 sw.base keep root sys Base Software
@ -8,3 +10,4 @@ info man.doc keep root sys Documentation
man man.manpages keep root sys Manpages
doc man.doc keep root sys Documentation
share sw.base keep root sys Base Software
ssl sw.base keep root sys Base Software