- pushd "$line" >> /dev/null
- "$gmqcc_bin" $(cat ../../options | grep "$line:" | awk '{print $2}') > /dev/null 2>&1
- if [ $? -ne 0 ]; then
+ pushd "$line" > /dev/null
+
+ # does the project have multiple subprojects?
+ if [ -f dirs ]; then
+ cat dirs | while read -r dir
+ do
+ # change to subproject
+ pushd "$dir" > /dev/null
+ "$gmqcc_bin" $(cat ../../../options | grep "$line:" | awk '{print $2}') > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ error=1
+ fi
+ popd > /dev/null
+ done
+ # nope only one project
+ else
+ "$gmqcc_bin" $(cat ../../options | grep "$line:" | awk '{print $2}') > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ error=1
+ fi
+ fi
+
+ # status
+ if [ $error -ne 0 ]; then