minor tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e277c16a40
commit
543c4c0454
1 changed files with 12 additions and 6 deletions
|
|
@ -6,8 +6,11 @@ import sys
|
||||||
import string
|
import string
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def failed():
|
def failed(message):
|
||||||
print "mkrelease.py to complete"
|
if message == "":
|
||||||
|
print "mkrelease.py failed to complete"
|
||||||
|
else:
|
||||||
|
print message
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
@ -18,13 +21,16 @@ except:
|
||||||
print "where version should be 1.3.x and username is your SF username"
|
print "where version should be 1.3.x and username is your SF username"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
print "Looking for wput"
|
||||||
|
os.system("which wput") and failed("wput not installed/found. Please install.")
|
||||||
|
|
||||||
print "Making source tarball"
|
print "Making source tarball"
|
||||||
os.system("python ./mkdist.py " + version) and failed()
|
os.system("python ./mkdist.py " + version) and failed("")
|
||||||
|
|
||||||
print "Build Windows package"
|
print "Build Windows package"
|
||||||
os.system("./mkwindows.sh " + version) and failed()
|
os.system("./mkwindows.sh " + version) and failed("")
|
||||||
|
|
||||||
print "Uploading to Sourceforge"
|
print "Uploading to Sourceforge"
|
||||||
os.system("wput --verbose --binary swig-" + version + ".tar.gz ftp://anonymous:" + username + "@users.sourceforge.net@upload.sourceforge.net/incoming/") and failed()
|
os.system("wput --verbose --binary swig-" + version + ".tar.gz ftp://anonymous:" + username + "@users.sourceforge.net@upload.sourceforge.net/incoming/") and failed("")
|
||||||
os.system("wput --verbose --binary swigwin-" + version + ".zip ftp://anonymous:" + username + "@users.sourceforge.net@upload.sourceforge.net/incoming/") and failed()
|
os.system("wput --verbose --binary swigwin-" + version + ".zip ftp://anonymous:" + username + "@users.sourceforge.net@upload.sourceforge.net/incoming/") and failed("")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue