aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r1084261 - /aries/scripts/download_release_artifacts.pl
Date Tue, 22 Mar 2011 17:26:04 GMT
Author: zoe
Date: Tue Mar 22 17:26:04 2011
New Revision: 1084261

URL: http://svn.apache.org/viewvc?rev=1084261&view=rev
Log:
script to generate a download script for released versions

Added:
    aries/scripts/download_release_artifacts.pl

Added: aries/scripts/download_release_artifacts.pl
URL: http://svn.apache.org/viewvc/aries/scripts/download_release_artifacts.pl?rev=1084261&view=auto
==============================================================================
--- aries/scripts/download_release_artifacts.pl (added)
+++ aries/scripts/download_release_artifacts.pl Tue Mar 22 17:26:04 2011
@@ -0,0 +1,36 @@
+#!/bin/perl
+#
+# Generate a script to download release artifacts.
+#
+
+$from_repository = "https://repository.apache.org/content/repositories/releases/org/apache/aries";
+
+$oaa = "org.apache.aries";
+
+open (MOD, "aries_release_versions.txt");
+
+while (<MOD>) {
+    if (/Module: (\w+)/i) {
+    $module = $1;
+  # print "$module \n";
+    while (<MOD>) {
+       last if (/ModuleEnd/i);
+       next if (/^#/);
+       chomp;
+       ($bundle, $version) = split(/,/, $_);
+       print_row();
+     # print "$bundle $version \n";
+    }
+  }
+}
+sub print_row {
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version.jar\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version.jar.md5\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version.jar.asc\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version.jar.sha1\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version-sources.jar\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version-sources.jar.md5\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version-sources.jar.asc\n";
+  print "wget $from_repository/$module/$oaa.$bundle/$version/$oaa.$bundle-$version-sources.jar.sha1\n";
+}
+



Mime
View raw message