about summary refs log tree commit diff
path: root/scripts/make_src.py
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-12 21:53:06 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-12 21:53:06 +0000
commita1b69192e8b237f510edbfd24c2cf7a2578da5bc (patch)
treea0c9941e79185eb68015c033026bc8a482f9f3f8 /scripts/make_src.py
parent95f38bd4262874e581a8b1042b1e2a6d33f9739a (diff)
downloadzcatch-a1b69192e8b237f510edbfd24c2cf7a2578da5bc.tar.gz
zcatch-a1b69192e8b237f510edbfd24c2cf7a2578da5bc.zip
added build scripts
Diffstat (limited to 'scripts/make_src.py')
-rw-r--r--scripts/make_src.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/make_src.py b/scripts/make_src.py
new file mode 100644
index 00000000..9cff10c7
--- /dev/null
+++ b/scripts/make_src.py
@@ -0,0 +1,34 @@
+import os, shutil, zipfile
+
+version = "0.3.0-test"
+svn_tree = "trunk"
+
+# make clean
+if 1:
+	try: shutil.rmtree("srcwork")
+	except: pass
+	try: os.mkdir("srcwork")
+	except: pass
+
+root_dir = os.getcwd() + "/srcwork"
+
+# change dir
+os.chdir(root_dir)
+
+# fix bam
+if 1:
+	os.system("svn export http://stalverk80.se/svn/bam bam")
+	z = zipfile.ZipFile("../bam.zip", "w")
+	for root, dirs, files in os.walk("bam"):
+		for f in files:
+			z.write(root+"/"+ f)
+	z.close()
+
+if 1:
+	os.system("svn export svn://svn.teewars.com/teewars/%s teewars" % svn_tree)
+	os.chdir("teewars")
+	os.system("python scripts/make_release.py %s src" % version)
+	os.chdir(root_dir)
+	for f in os.listdir("teewars"):
+		if "teewars" in f and "src" in f and (".zip" in f or ".tar.gz" in f):
+			shutil.copy("teewars/"+f, "../" + f)