summaryrefslogtreecommitdiff
path: root/Tools/mkrelease.py
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2007-11-01 22:28:16 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2007-11-01 22:28:16 +0000
commite277c16a401a5801552ec4339b73288aec599fa6 (patch)
tree111db0e8123600c9aec17fd847cd06dd8c7006f4 /Tools/mkrelease.py
parent389576b755bb72df8d2d5282288e7d985b6bffde (diff)
downloadswig-e277c16a401a5801552ec4339b73288aec599fa6.tar.gz
a single script to make the source tarball and windows release and upload to sourceforge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Tools/mkrelease.py')
-rwxr-xr-xTools/mkrelease.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/Tools/mkrelease.py b/Tools/mkrelease.py
new file mode 100755
index 000000000..dbf4ad67f
--- /dev/null
+++ b/Tools/mkrelease.py
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+
+# This script builds the SWIG source tarball, creates the Windows executable and the Windows zip package
+# and uploads them both to SF ready for release
+import sys
+import string
+import os
+
+def failed():
+ print "mkrelease.py to complete"
+ sys.exit(2)
+
+try:
+ version = sys.argv[1]
+ username = sys.argv[2]
+except:
+ print "Usage: python mkrelease.py version username"
+ print "where version should be 1.3.x and username is your SF username"
+ sys.exit(1)
+
+print "Making source tarball"
+os.system("python ./mkdist.py " + version) and failed()
+
+print "Build Windows package"
+os.system("./mkwindows.sh " + version) and failed()
+
+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 swigwin-" + version + ".zip ftp://anonymous:" + username + "@users.sourceforge.net@upload.sourceforge.net/incoming/") and failed()
+