From: Jose V Beneyto Date: Wed, 20 Oct 2010 10:43:22 +0000 (+0200) Subject: Fixed buildAllPackages.sh to use PKGMK_PACKAGE_DIR from pkgmk.conf. Also fixed to... X-Git-Url: http://gitweb/?a=commitdiff_plain;h=25138fffdd20152fe5dcd02d4b705742b3a7f8e6;p=devtools.git Fixed buildAllPackages.sh to use PKGMK_PACKAGE_DIR from pkgmk.conf. Also fixed to avoid install a package if previously was installed --- diff --git a/buildAllPackages.sh b/buildAllPackages.sh index 501b473..e7580a9 100755 --- a/buildAllPackages.sh +++ b/buildAllPackages.sh @@ -1,14 +1,21 @@ #!/bin/bash +PKGMK_CONF=/devel/crux-arm/pkgutils-cross/src/pkgmk.conf +. $PKGMK_CONF + [ ! -f getBuildOrder.sh ] && exit 1 for port in $(sh getBuildOrder.sh); do + # if package is previously installed + [ ! -z "$(pkginfo-cross -i | grep "$port ")" ] && continue [ ! -f "${port}/Pkgfile" ] && exit 1 . $port/Pkgfile [ -f "$port/${name}#${version}-${release}.pkg.tar.gz" ] && continue cd $port || exit 1 ( fakeroot pkgmk-cross -d 2>&1 | tee pkgmk.log ) || exit 1 - ( sudo pkgadd-cross $(find . -type f -name '*.pkg.tar.gz') || sudo pkgadd-cross -f $(find . -type f -name '*.pkg.tar.gz') ) || exit 1 + ( sudo pkgadd-cross $PKGMK_PACKAGE_DIR/${name}#${version}-${release}.pkg.tar.gz \ + || sudo pkgadd-cross -f $PKGMK_PACKAGE_DIR/${name}#${version}-${release}.pkg.tar.gz + ) || exit 1 cd - || exit 1 done