Minor error message and exit number tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
21192f900c
commit
22be676b23
1 changed files with 4 additions and 4 deletions
|
|
@ -8,8 +8,8 @@ import string
|
|||
import os
|
||||
|
||||
def failed():
|
||||
print "Failed to complete"
|
||||
sys.exit(1)
|
||||
print "mkdist.py failed to complete"
|
||||
sys.exit(2)
|
||||
|
||||
|
||||
try:
|
||||
|
|
@ -17,12 +17,12 @@ try:
|
|||
dirname = "swig-" + version
|
||||
except:
|
||||
print "Usage: mkdist.py version, where version should be 1.3.x"
|
||||
sys.exit(0)
|
||||
sys.exit(1)
|
||||
|
||||
# Check name matches normal unix conventions
|
||||
if string.lower(dirname) != dirname:
|
||||
print "directory name ("+dirname+") should be in lowercase"
|
||||
sys.exit(2)
|
||||
sys.exit(3)
|
||||
|
||||
# If directory and tarball exist, remove it
|
||||
print "Removing ", dirname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue