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
This commit is contained in:
parent
019a75db87
commit
d7b9f996e3
1 changed files with 7 additions and 1 deletions
|
@ -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__":
|
||||
|
|
Loading…
Reference in a new issue