You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2010/07/11 09:29:44 UTC
svn commit: r963004 - /webservices/commons/trunk/modules/axiom/etc/dist.py
Author: veithen
Date: Sun Jul 11 07:29:44 2010
New Revision: 963004
URL: http://svn.apache.org/viewvc?rev=963004&view=rev
Log:
Added a Python script to prepare the files for www.apache.org/dist.
Added:
webservices/commons/trunk/modules/axiom/etc/dist.py
Added: webservices/commons/trunk/modules/axiom/etc/dist.py
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/etc/dist.py?rev=963004&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/etc/dist.py (added)
+++ webservices/commons/trunk/modules/axiom/etc/dist.py Sun Jul 11 07:29:44 2010
@@ -0,0 +1,14 @@
+from sys import *
+from os import *
+from os.path import *
+from urllib import *
+
+release = argv[1]
+dir = release.replace(".", "_")
+mkdir(dir)
+
+for classifier in [ "bin", "source-release" ]:
+ for suffix in [ "zip", "zip.asc", "zip.md5"]:
+ file = "axiom-" + release + "-" + classifier + "." + suffix
+ urlretrieve("http://repository.apache.org/content/repositories/releases/org/apache/ws/commons/axiom/axiom/" + release + "/" + file, join(dir, file))
+