CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed typo in the previous commit
[devtools.git] / buildAllPackages.sh
CommitLineData
258775a1
JB
1#!/bin/bash
2
25138fff
JB
3PKGMK_CONF=/devel/crux-arm/pkgutils-cross/src/pkgmk.conf
4. $PKGMK_CONF
5
258775a1
JB
6[ ! -f getBuildOrder.sh ] && exit 1
7
8for port in $(sh getBuildOrder.sh); do
25138fff
JB
9 # if package is previously installed
10 [ ! -z "$(pkginfo-cross -i | grep "$port ")" ] && continue
258775a1
JB
11 [ ! -f "${port}/Pkgfile" ] && exit 1
12 . $port/Pkgfile
13 [ -f "$port/${name}#${version}-${release}.pkg.tar.gz" ] && continue
14 cd $port || exit 1
15 ( fakeroot pkgmk-cross -d 2>&1 | tee pkgmk.log ) || exit 1
25138fff
JB
16 ( sudo pkgadd-cross $PKGMK_PACKAGE_DIR/${name}#${version}-${release}.pkg.tar.gz \
17 || sudo pkgadd-cross -f $PKGMK_PACKAGE_DIR/${name}#${version}-${release}.pkg.tar.gz
18 ) || exit 1
258775a1
JB
19 cd - || exit 1
20done
21
22# End fo file