Add PKG_PATH so packages can be found automatically (not sure what caused

this to break).  Support both .tgz and .tbz packages.
This commit is contained in:
Kris Kennaway 2002-09-15 21:57:05 +00:00
parent b2abae3101
commit d50285d854
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66385

View file

@ -13,11 +13,13 @@ if [ $phase = 1 ]; then
echo "build started at $(date)"
cd /tmp/depends
export PKG_PATH=/tmp/depends
if [ "$(echo $(/bin/ls | wc -c))" != 0 ]; then
echo "adding dependencies"
for i in *.tgz; do
for i in *.t[bg]z; do
echo "pkg_add -f $i"
base=$(basename $i .tgz)
base=$(basename $base .tbz)
if pkg_info -q -e $base; then
echo "skipping $base, already added"
else