Add simple build check script

This commit is contained in:
Stephan Erb 2009-10-18 18:38:13 +02:00
parent 2ccaf5b2b4
commit a628fa1672
1 changed files with 20 additions and 0 deletions

20
scripts/dev/run-build-test.py Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env python
import os
import sys
if os.getcwd().endswith('dev'):
os.chdir('../../') # we were in scripts/dev
ret1 = os.system("make clean > " + os.devnull + " 2>&1")
ret2 = os.system("make > " + os.devnull + " 2>&1")
if ret1 + ret2 == 0:
print "Build successfull"
sys.exit(0)
else:
print >>sys.stderr, "Build failed"
sys.exit(1)
# vim: se ts=3: