1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 19:35:13 +00:00

Allow for WARNING output in build script

This commit is contained in:
Luke Ceddia 2019-01-29 23:37:49 +11:00
parent 018e711820
commit 8994fda1a2
2 changed files with 2 additions and 3 deletions

View file

@ -41,7 +41,7 @@ echo "Translating .bas source..."
echo From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'` > internal/version.txt echo From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'` > internal/version.txt
./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output ./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output
rm qb64_bootstrap rm qb64_bootstrap
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then if [ `grep -v '^WARNING' /tmp/qb64-output | wc -l` -gt 2 ]; then
cat /tmp/qb64-output cat /tmp/qb64-output
rm /tmp/qb64-output rm /tmp/qb64-output
exit 1 exit 1

View file

@ -41,7 +41,7 @@ echo -n "Translating .bas source..."
echo From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'` > internal/version.txt echo From git `echo $TRAVIS_COMMIT | sed 's/\(.......\).*$/\1/'` > internal/version.txt
./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output ./qb64_bootstrap -x -z source/qb64.bas > /tmp/qb64-output
rm qb64_bootstrap rm qb64_bootstrap
if [ `wc -l /tmp/qb64-output |awk '{print $1}'` -gt 2 ]; then if [ `grep -v '^WARNING' /tmp/qb64-output | wc -l` -gt 2 ]; then
cat /tmp/qb64-output cat /tmp/qb64-output
rm /tmp/qb64-output rm /tmp/qb64-output
exit 1 exit 1
@ -72,4 +72,3 @@ find . -type f -iname "*.a" -exec rm {} \;
find . -type f -iname "*.o" -exec rm {} \; find . -type f -iname "*.o" -exec rm {} \;
cd internal/source cd internal/source
rm debug_* recompile_* rm debug_* recompile_*