summaryrefslogtreecommitdiff
path: root/java/makedist.py
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2006-11-08 13:01:35 +0000
committerBrent Eagles <brent@zeroc.com>2006-11-08 13:01:35 +0000
commit9f36eb0e2a64edca8709ea51940e3bf742fcfc57 (patch)
treeb17a0a28fa9e0c35fc4d85824d6b257a83582270 /java/makedist.py
parentAdding precondition checks to make sure that IceGridGUI has a chance of (diff)
downloadice-9f36eb0e2a64edca8709ea51940e3bf742fcfc57.tar.bz2
ice-9f36eb0e2a64edca8709ea51940e3bf742fcfc57.tar.xz
ice-9f36eb0e2a64edca8709ea51940e3bf742fcfc57.zip
adding a flag to skip precondition checks.
Diffstat (limited to 'java/makedist.py')
-rwxr-xr-xjava/makedist.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/java/makedist.py b/java/makedist.py
index 387bd6b3433..635b5f07aa0 100755
--- a/java/makedist.py
+++ b/java/makedist.py
@@ -17,10 +17,11 @@ def usage():
print "Usage: " + sys.argv[0] + " [options] [tag]"
print
print "Options:"
- print "-h Show this message."
- print "-d Skip SGML documentation conversion."
- print "-t Skip building translators and use the ones in PATH."
- print "-v Be verbose."
+ print "-h Show this message."
+ print "-d Skip SGML documentation conversion."
+ print "-t Skip building translators and use the ones in PATH."
+ print "-f Keep going if precondition checks fail."
+ print "-v Be verbose."
print
print "If no tag is specified, HEAD is used."
@@ -91,6 +92,7 @@ tag = "-rHEAD"
skipDocs = False
skipTranslators = False
verbose = False
+keepGoing = False
for x in sys.argv[1:]:
if x == "-h":
usage()
@@ -103,6 +105,8 @@ for x in sys.argv[1:]:
skipTranslators = True
elif x == "-v":
verbose = True
+ elif x == "-f":
+ keepGoing = True
elif x.startswith("-"):
print sys.argv[0] + ": unknown option `" + x + "'"
print
@@ -171,7 +175,8 @@ else:
if errorOut:
print "Failed precondition checks! See above messages."
- sys.exit(1)
+ if not keepGoing:
+ sys.exit(1)
#
# Copy Slice directories.