diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-04 22:51:41 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-04 22:51:41 +0000 |
| commit | 34291e79bd57a9a8f2b94b6d636d3dda3e6f3fd8 (patch) | |
| tree | 22cc6f091445d2f5f161ae78d8df042ce89a6905 /scripts/deploy_win.py | |
| parent | 56362977e33f753caf03ebc1e099715d7b597518 (diff) | |
| download | zcatch-34291e79bd57a9a8f2b94b6d636d3dda3e6f3fd8.tar.gz zcatch-34291e79bd57a9a8f2b94b6d636d3dda3e6f3fd8.zip | |
added make release scripts
Diffstat (limited to 'scripts/deploy_win.py')
| -rw-r--r-- | scripts/deploy_win.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/deploy_win.py b/scripts/deploy_win.py deleted file mode 100644 index 3015ba5a..00000000 --- a/scripts/deploy_win.py +++ /dev/null @@ -1,30 +0,0 @@ -import zipfile -import os, os.path -from distutils.file_util import copy_file - -# A bit of dir trickery to make sure we're referring to the right dir -# this makes it possible to run the script both from the teewars root and -# the scripts subdir -if os.getcwd().find("scripts") > -1: - dir = os.path.abspath("..") -else: - dir = os.getcwd() - -data_dir = "%s\\%s" % (dir, 'data') -exe_file = "%s\\%s" % (dir, 'teewars.exe') -zip_file = "%s\\%s" % (dir, 'teewars.zip') - -ns = os.listdir(data_dir) -try: - ns.remove('.svn') -except: - pass -zf = zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED) -zf.write(exe_file, 'teewars.exe') -for n in ns: - zf.write(os.path.join(data_dir, n), "%s\\%s" % ('data', n)) - -print "Data written to zip-file:\n" -zf.printdir() -zf.close() - |