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