X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2Fcheck-customs;h=237437a5c88fdc2b7e8ed969579ebe0307c3c26c;hb=c70b0bd774606177c893f6869ece09d0fd1d9034;hp=96ce568a1d3574af069d97bd68238a49c20ed3b2;hpb=c5cdbc9c4fb1e62ad7d3dd38fb992e3ba35bb95f;p=libucw.git diff --git a/build/check-customs b/build/check-customs index 96ce568a..237437a5 100755 --- a/build/check-customs +++ b/build/check-customs @@ -9,7 +9,8 @@ TEST=0 function try { TEST=$(($TEST+1)) - echo "### Test $TEST: $@ ###" + LOG=test$TEST.log + echo "### Test $TEST: $@ ###" | tee $LOG CUST=$1 shift @@ -26,14 +27,13 @@ function try shift done rm -rf custom - mkdir custom custom/lib - cp $CUST/lib/custom.h custom/lib/ - cp $CUST/Makefile custom/ + cp -a $CUST custom sed "$SUBST;p;d" <$CUST/config.mk >custom/config.mk echo $APP | tr ! '\n' >>custom/config.mk - make clean >test$TEST.log 2>&1 - if ! make >>test$TEST.log 2>&1 ; then + make clean >>$LOG 2>&1 + rm run/cf/* + if ! make >>$LOG 2>&1 ; then echo " FAILED" exit 1 fi