153 |
comm=`grep '^# OPTFILE=' $xx/build/Makefile 2>/dev/null | head -1 | sed 's/^# //'` |
comm=`grep '^# OPTFILE=' $xx/build/Makefile 2>/dev/null | head -1 | sed 's/^# //'` |
154 |
echo "from '$xx/build/Makefile', extract:" > $DRESULTS/genmake_state |
echo "from '$xx/build/Makefile', extract:" > $DRESULTS/genmake_state |
155 |
sed -n '/^# executed by:/,+1 p' $xx/build/Makefile >> $DRESULTS/genmake_state |
sed -n '/^# executed by:/,+1 p' $xx/build/Makefile >> $DRESULTS/genmake_state |
156 |
echo $comm >> $DRESULTS/genmake_state |
echo " $comm" >> $DRESULTS/genmake_state |
157 |
eval $comm |
eval $comm |
158 |
|
gmkLog=$xx/build/genmake.log |
159 |
|
grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1 |
160 |
|
out=$? |
161 |
|
if test "x$out" = x0 ; then |
162 |
|
echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state |
163 |
|
sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \ |
164 |
|
| grep -v '^... compiler version ' > tr_vers.tmp_log |
165 |
|
sed -n '1,/^$/p' tr_vers.tmp_log | sed '/^$/d' | sed 's/^./ &/' \ |
166 |
|
>> $DRESULTS/genmake_state |
167 |
|
rm -f tr_vers.tmp_log |
168 |
|
fi |
169 |
fi |
fi |
170 |
if test $yy = 'run' ; then nam=$xx |
if test $yy = 'run' ; then nam=$xx |
171 |
else nam=$xx`echo $yy | sed 's/tr_run//'` ; fi |
else nam=$xx`echo $yy | sed 's/tr_run//'` ; fi |