mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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 subprocess
|
||||||
import getopt
|
import getopt
|
||||||
import which
|
import which
|
||||||
|
import time
|
||||||
|
|
||||||
# == Global stuff ==
|
# == Global stuff ==
|
||||||
# Windows nees some special treatment. Differentiate between program name
|
# Windows nees some special treatment. Differentiate between program name
|
||||||
|
|
@ -170,8 +171,9 @@ def tarball(versionstring):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
startup = time.time()
|
||||||
try:
|
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:
|
except getopt.GetoptError, err:
|
||||||
print str(err)
|
print str(err)
|
||||||
usage(sys.argv[0])
|
usage(sys.argv[0])
|
||||||
|
|
@ -206,6 +208,10 @@ def main():
|
||||||
else:
|
else:
|
||||||
tarball(ver)
|
tarball(ver)
|
||||||
print "done."
|
print "done."
|
||||||
|
duration = time.time() - startup
|
||||||
|
durmins = (int)(duration / 60)
|
||||||
|
dursecs = (int)(duration - durmins)
|
||||||
|
print "Building took %smin %ssec." % (durmins, dursecs)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue