TMPDIR="$(cd $TMPDIR; pwd)"
PKGDIR="$(cd $PKGDIR; pwd)"
RELEASE_DIR="$(cd $RELEASE_DIR; pwd)"
- [ -z "$PACKAGES" ] && PACKAGES="$(find $PKGDIR -type f -name '*#*pkg.tar.*')"
+ [ -z "$PACKAGES" ] && PACKAGES="$(find $PKGDIR -type f -name '*#*pkg.tar.*' ! -name 'filesystem#*pkg.tar.*')"
+ [ -z "$FILESYSTEM" ] && FILESYSTEM="$(find $PKGDIR -type f -name 'filesystem#*pkg.tar.*')"
}
# global variables
pkgnum=0
echo "+ Installing packages..."
+echo "+ Installing filesystem port"
+sudo pkgadd -r $TMPDIR $FILESYSTEM || msgError "failed to install $FILESYSTEM package"
+
for pkg in $PACKAGES; do
sudo pkgadd -r $TMPDIR $pkg || msgError "failed to install $pkg"
let pkgnum=$pkgnum+1