summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-22 22:02:56 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-22 22:02:56 +0000
commit07e8647d88dbc3f7eab01dc3ab5cc431441a4d8f (patch)
treea3eb8029fbcc923cd5687fc6d1d84a3dc6a741a5 /rbutil
parent5b4938a8ca8494afa560200b67eb76df4224caea (diff)
downloadrockbox-07e8647d88dbc3f7eab01dc3ab5cc431441a4d8f.tar.gz
rockbox-07e8647d88dbc3f7eab01dc3ab5cc431441a4d8f.tar.bz2
rockbox-07e8647d88dbc3f7eab01dc3ab5cc431441a4d8f.zip
Add simple progress indicator when building.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23317 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rwxr-xr-xrbutil/rbutilqt/deploy-release.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/deploy-release.py b/rbutil/rbutilqt/deploy-release.py
index 48cd41467e..3faa5ce430 100755
--- a/rbutil/rbutilqt/deploy-release.py
+++ b/rbutil/rbutilqt/deploy-release.py
@@ -192,10 +192,17 @@ def build(wd="."):
# make
print "Building ..."
output = subprocess.Popen(["make"], stdout=subprocess.PIPE, cwd=wd)
- output.communicate()
- if not output.returncode == 0:
- print "Build failed!"
- return -1
+ while True:
+ c = output.stdout.readline()
+ sys.stdout.write(".")
+ sys.stdout.flush()
+ if not output.poll() == None:
+ sys.stdout.write("\n")
+ sys.stdout.flush()
+ if not output.returncode == 0:
+ print "Build failed!"
+ return -1
+ break
# strip
print "Stripping binary."
output = subprocess.Popen(["strip", progexe], stdout=subprocess.PIPE, cwd=wd)