CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed buildAllPackages.sh to use PKGMK_PACKAGE_DIR from pkgmk.conf. Also fixed to...
authorJose V Beneyto <sepen@crux.nu>
Wed, 20 Oct 2010 10:43:22 +0000 (12:43 +0200)
committerJose V Beneyto <sepen@crux.nu>
Wed, 20 Oct 2010 10:43:22 +0000 (12:43 +0200)
buildAllPackages.sh

index 501b47303ecddbe38c04e80a80914de2ea37b465..e7580a95b0b7c056084e0512bac8c3bafcc35534 100755 (executable)
@@ -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