summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-04 21:17:59 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-04 21:17:59 +0000
commitd5529efec7cf91ad5cc69e1d5c2f6c94e0a6e39b (patch)
tree7525feea5dda83340c4822bb40893d899c01acc3
parent21628dba09e71bc6042953d9f4ce6a04324f0b87 (diff)
downloadrockbox-d5529efec7cf91ad5cc69e1d5c2f6c94e0a6e39b.zip
rockbox-d5529efec7cf91ad5cc69e1d5c2f6c94e0a6e39b.tar.gz
rockbox-d5529efec7cf91ad5cc69e1d5c2f6c94e0a6e39b.tar.bz2
rockbox-d5529efec7cf91ad5cc69e1d5c2f6c94e0a6e39b.tar.xz
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
-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 ee9591c..f8aaf0d 100755
--- a/rbutil/rbutilqt/deploy-release.py
+++ b/rbutil/rbutilqt/deploy-release.py
@@ -85,6 +85,7 @@ def usage(myself):
print " -q, --qmake=<qmake> path to qmake"
print " -p, --project=<pro> path to .pro file for building with local tree"
print " -t, --tag=<tag> use specified tag from svn"
+ print " -a, --add=<file> 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