ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / scripts / report-broken.sh
blob5c6f1ef5cd906a451fc4574ad357c0ed882dd1f5
1 #!/bin/sh
2 # This script will try to build all common cross packages one by one and
3 # at the end will output broken packages in Makefile format
4 # Example batch usage: nohup sh scripts/report-broken.sh &
6 PKGS_VAR=$1
7 if test -z "$PKGS_VAR"; then
8 PKGS_VAR=COMMON_CROSS_PACKAGES
9 fi
11 PACKAGES=`make query-${PKGS_VAR}`
13 i=0
14 NL="\\\\\\n"
16 for package in ${PACKAGES} ; do
17 echo "####### >>> Building ${package}"
18 make ${package}-ipk
19 status=$?
20 if [ ${status} != 0 ]; then
21 echo "%%%%%%% ${package} Error ${status}"
22 BROKEN="${BROKEN} ${package}"
23 i=$((${i}+1))
24 if [ ${i} = 7 ]; then
25 BROKEN="${BROKEN} ${NL}\t"
26 i=0
29 done
31 echo -e "BROKEN_PACKAGES = ${NL}\t${BROKEN}"