From d7b9f996e3eb3b870bee9d9f7fed369d39d93168 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 20 Sep 2009 14:59:29 +0000 Subject: [PATCH] Fix short version of qmake command option. Add display of building time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22751 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/deploy-release.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rbutil/rbutilqt/deploy-release.py b/rbutil/rbutilqt/deploy-release.py index a4b9dcea97..7cb0dbe377 100755 --- a/rbutil/rbutilqt/deploy-release.py +++ b/rbutil/rbutilqt/deploy-release.py @@ -34,6 +34,7 @@ import shutil import subprocess import getopt import which +import time # == Global stuff == # Windows nees some special treatment. Differentiate between program name @@ -170,8 +171,9 @@ def tarball(versionstring): def main(): + startup = time.time() try: - opts, args = getopt.getopt(sys.argv[1:], "qh", ["qmake=", "help"]) + opts, args = getopt.getopt(sys.argv[1:], "q:h", ["qmake=", "help"]) except getopt.GetoptError, err: print str(err) usage(sys.argv[0]) @@ -206,6 +208,10 @@ def main(): else: tarball(ver) print "done." + duration = time.time() - startup + durmins = (int)(duration / 60) + dursecs = (int)(duration - durmins) + print "Building took %smin %ssec." % (durmins, dursecs) if __name__ == "__main__":