From d5529efec7cf91ad5cc69e1d5c2f6c94e0a6e39b Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 4 Oct 2009 21:17:59 +0000 Subject: Add command line option for adding additional files to the build folder. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22928 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/deploy-release.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/deploy-release.py') 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): print " -q, --qmake= path to qmake" print " -p, --project= path to .pro file for building with local tree" print " -t, --tag= use specified tag from svn" + print " -a, --add= add file to build folder before building" print " -h, --help this help" print " If neither a project file nor tag is specified trunk will get downloaded" print " from svn." @@ -289,8 +290,8 @@ def filestats(filename): def main(): startup = time.time() try: - opts, args = getopt.getopt(sys.argv[1:], "q:p:t:h", - ["qmake=", "project=", "tag=", "help"]) + opts, args = getopt.getopt(sys.argv[1:], "q:p:t:a:h", + ["qmake=", "project=", "tag=", "add=", "help"]) except getopt.GetoptError, err: print str(err) usage(sys.argv[0]) @@ -299,6 +300,7 @@ def main(): proj = "" svnbase = svnserver + "trunk/" tag = "" + addfiles = [] cleanup = True for o, a in opts: if o in ("-q", "--qmake"): @@ -309,6 +311,8 @@ def main(): if o in ("-t", "--tag"): tag = a svnbase = svnserver + "tags/" + tag + "/" + if o in ("-a", "--add"): + addfiles.append(a) if o in ("-h", "--help"): usage(sys.argv[0]) sys.exit(0) @@ -363,6 +367,9 @@ def main(): print "ERROR: path to project file wrong." sys.exit(1) + # copy specified (--add) files to working folder + for f in addfiles: + shutil.copy(f, sourcefolder) buildstart = time.time() header = "Building %s %s" % (program, ver) print header -- cgit v1.2.3