summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrbutil/rbutilqt/deploy-release.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/deploy-release.py b/rbutil/rbutilqt/deploy-release.py
index ee9591c50a..f8aaf0dc45 100755
--- a/rbutil/rbutilqt/deploy-release.py
+++ b/rbutil/rbutilqt/deploy-release.py
@@ -85,6 +85,7 @@ def usage(myself):
85 print " -q, --qmake=<qmake> path to qmake" 85 print " -q, --qmake=<qmake> path to qmake"
86 print " -p, --project=<pro> path to .pro file for building with local tree" 86 print " -p, --project=<pro> path to .pro file for building with local tree"
87 print " -t, --tag=<tag> use specified tag from svn" 87 print " -t, --tag=<tag> use specified tag from svn"
88 print " -a, --add=<file> add file to build folder before building"
88 print " -h, --help this help" 89 print " -h, --help this help"
89 print " If neither a project file nor tag is specified trunk will get downloaded" 90 print " If neither a project file nor tag is specified trunk will get downloaded"
90 print " from svn." 91 print " from svn."
@@ -289,8 +290,8 @@ def filestats(filename):
289def main(): 290def main():
290 startup = time.time() 291 startup = time.time()
291 try: 292 try:
292 opts, args = getopt.getopt(sys.argv[1:], "q:p:t:h", 293 opts, args = getopt.getopt(sys.argv[1:], "q:p:t:a:h",
293 ["qmake=", "project=", "tag=", "help"]) 294 ["qmake=", "project=", "tag=", "add=", "help"])
294 except getopt.GetoptError, err: 295 except getopt.GetoptError, err:
295 print str(err) 296 print str(err)
296 usage(sys.argv[0]) 297 usage(sys.argv[0])
@@ -299,6 +300,7 @@ def main():
299 proj = "" 300 proj = ""
300 svnbase = svnserver + "trunk/" 301 svnbase = svnserver + "trunk/"
301 tag = "" 302 tag = ""
303 addfiles = []
302 cleanup = True 304 cleanup = True
303 for o, a in opts: 305 for o, a in opts:
304 if o in ("-q", "--qmake"): 306 if o in ("-q", "--qmake"):
@@ -309,6 +311,8 @@ def main():
309 if o in ("-t", "--tag"): 311 if o in ("-t", "--tag"):
310 tag = a 312 tag = a
311 svnbase = svnserver + "tags/" + tag + "/" 313 svnbase = svnserver + "tags/" + tag + "/"
314 if o in ("-a", "--add"):
315 addfiles.append(a)
312 if o in ("-h", "--help"): 316 if o in ("-h", "--help"):
313 usage(sys.argv[0]) 317 usage(sys.argv[0])
314 sys.exit(0) 318 sys.exit(0)
@@ -363,6 +367,9 @@ def main():
363 print "ERROR: path to project file wrong." 367 print "ERROR: path to project file wrong."
364 sys.exit(1) 368 sys.exit(1)
365 369
370 # copy specified (--add) files to working folder
371 for f in addfiles:
372 shutil.copy(f, sourcefolder)
366 buildstart = time.time() 373 buildstart = time.time()
367 header = "Building %s %s" % (program, ver) 374 header = "Building %s %s" % (program, ver)
368 print header 375 print header