diff options
author | Marko Grönroos <magi@iki.fi> | 2011-01-07 16:46:12 +0000 |
---|---|---|
committer | Marko Grönroos <magi@iki.fi> | 2011-01-07 16:46:12 +0000 |
commit | e8573de42f572df3dd7ed3e849523cba90a43403 (patch) | |
tree | 724d9c593d8b690bc13c0f4f7dd73bc0e40e7979 /build/bin | |
parent | 0ac0fa778e52e4e22db8f4e8c461f1446a17e3e0 (diff) | |
download | vaadin-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-x | build/bin/tagrelease.py | 10 |
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: |