summaryrefslogtreecommitdiffstats
path: root/build/bin
diff options
context:
space:
mode:
authorMarko Grönroos <magi@iki.fi>2011-01-07 16:46:12 +0000
committerMarko Grönroos <magi@iki.fi>2011-01-07 16:46:12 +0000
commite8573de42f572df3dd7ed3e849523cba90a43403 (patch)
tree724d9c593d8b690bc13c0f4f7dd73bc0e40e7979 /build/bin
parent0ac0fa778e52e4e22db8f4e8c461f1446a17e3e0 (diff)
downloadvaadin-framework-e8573de42f572df3dd7ed3e849523cba90a43403.tar.gz
vaadin-framework-e8573de42f572df3dd7ed3e849523cba90a43403.zip
Get book repository URL from command-line as it is no longer stored in the core repo.
svn changeset:16825/svn branch:6.5
Diffstat (limited to 'build/bin')
-rwxr-xr-xbuild/bin/tagrelease.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/build/bin/tagrelease.py b/build/bin/tagrelease.py
index ae8c7a9a65..40bc42a352 100755
--- a/build/bin/tagrelease.py
+++ b/build/bin/tagrelease.py
@@ -39,7 +39,7 @@ def readProperties(filename):
def helpAndExit():
print "Usage: build/bin/tagrelease <command> [parameters...]"
print "Commands:"
- print "\ttag <version> <changeset>"
+ print "\ttag <version> <changeset> <manual-repository>"
sys.exit(1)
###############################################################################
@@ -74,7 +74,7 @@ def tag(product, srcUrl, trgUrl, version, changeset, dryrun = 1):
###############################################################################
# Tag command
###############################################################################
-def tagCommand(version, changeset):
+def tagCommand(version, changeset, bookRepo):
# Check parameters
m = re.match(r'^[0-9]+\.[0-9]+\.[0-9]+(\.\w+)?$', version)
if not m:
@@ -92,8 +92,6 @@ def tagCommand(version, changeset):
tagUrl = repoRoot+"/releases/"+version
# Book tag parameters
- versionProperties = readProperties("build/VERSION.properties")
- bookRepo = versionProperties["manual.repository"]
if not re.search(r'branches/[0-9\.]+$', bookRepo):
print "Bad documentation branch '%s' for release." % (bookRepo)
sys.exit(1)
@@ -131,8 +129,8 @@ def verifyCommand(version, changeset):
if len(sys.argv) < 2:
helpAndExit()
-if sys.argv[1] == "tag" and len(sys.argv) == 4:
- tagCommand(sys.argv[2], sys.argv[3])
+if sys.argv[1] == "tag" and len(sys.argv) == 5:
+ tagCommand(sys.argv[2], sys.argv[3], sys.argv[4])
elif sys.argv[1] == "verify" and len(sys.argv) == 4:
verifyCommand(sys.argv[2], sys.argv[3])
else: