1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

* Use SRCBASE for source location

* The 5.x variant for populating /etc does not work on 6.x and above, and
  vice versa.  Conditionalize old and new methods.
This commit is contained in:
Kris Kennaway 2006-09-14 05:17:12 +00:00
parent 72ac1bdadb
commit cef3a38ffb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172997

View File

@ -35,12 +35,13 @@ while [ $# -gt 0 ]; do
done
if [ "$client" = "1" ]; then
cd ${pb}/${arch}/src-client
SRCBASE=${pb}/${arch}/src-client
shift 1
else
cd ${pb}/${arch}/${branch}/src
SRCBASE=${pb}/${arch}/${branch}/src
export __MAKE_CONF=/dev/null
fi
cd ${SRCBASE}
if [ "$nocvs" = "0" ]; then
echo "==> Updating source tree"
@ -76,10 +77,15 @@ if [ "$client" = "0" ]; then
fi
echo "==> Starting make distribute"
cd etc
make obj
make all
make distribute DISTRIBUTION=/var/chroot/
if [ "$branch" = "5" ]; then
cd etc
make obj
make all
make distribute DISTRIBUTION=/var/chroot/
else
make DESTDIR=/var/chroot distrib-dirs &&
make DESTDIR=/var/chroot distribution
fi
error=$?
if [ "$error" != "0" ]; then
exit $error