You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ge...@apache.org on 2008/05/06 12:50:29 UTC
svn commit: r653742 - in /servicemix/scripts: copy-snapshot-files.rb
servicemix-publish-catalog.rb servicemix-publish-schema.sh
Author: gertv
Date: Tue May 6 03:50:28 2008
New Revision: 653742
URL: http://svn.apache.org/viewvc?rev=653742&view=rev
Log:
Publishing catalog/schema files
Added:
servicemix/scripts/copy-snapshot-files.rb (with props)
servicemix/scripts/servicemix-publish-catalog.rb (with props)
servicemix/scripts/servicemix-publish-schema.sh (with props)
Added: servicemix/scripts/copy-snapshot-files.rb
URL: http://svn.apache.org/viewvc/servicemix/scripts/copy-snapshot-files.rb?rev=653742&view=auto
==============================================================================
--- servicemix/scripts/copy-snapshot-files.rb (added)
+++ servicemix/scripts/copy-snapshot-files.rb Tue May 6 03:50:28 2008
@@ -0,0 +1,11 @@
+#!/usr/local/bin/ruby
+
+require 'ftools'
+
+todir = ARGV[0]
+puts ARGV.length
+ARGV.last(ARGV.length - 1).sort.each do |file|
+ name = file.split('/').last.sub(/\d{8}\.\d{6}-\d{2}/, 'SNAPSHOT')
+ puts "#{file} -> #{name}"
+ File.copy(file, "#{todir}/#{name}")
+end
Propchange: servicemix/scripts/copy-snapshot-files.rb
------------------------------------------------------------------------------
svn:executable = *
Added: servicemix/scripts/servicemix-publish-catalog.rb
URL: http://svn.apache.org/viewvc/servicemix/scripts/servicemix-publish-catalog.rb?rev=653742&view=auto
==============================================================================
--- servicemix/scripts/servicemix-publish-catalog.rb (added)
+++ servicemix/scripts/servicemix-publish-catalog.rb Tue May 6 03:50:28 2008
@@ -0,0 +1,15 @@
+#!/usr/local/bin/ruby
+
+require 'ftools'
+
+TOOLING_DIR = '/www/servicemix.apache.org/tooling/'
+
+Dir.mkdir(TOOLING_DIR) unless File.exists?(TOOLING_DIR)
+
+ARGV.sort.each do |file|
+ next unless file =~ /catalog-.*\.xml/
+ version = file.split('/')[-2]
+ todir = TOOLING_DIR + version
+ Dir.mkdir(todir) unless File.exists?(todir)
+ File.copy(file, "#{todir}/archetype-catalog.xml")
+end
Propchange: servicemix/scripts/servicemix-publish-catalog.rb
------------------------------------------------------------------------------
svn:executable = *
Added: servicemix/scripts/servicemix-publish-schema.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/servicemix-publish-schema.sh?rev=653742&view=auto
==============================================================================
--- servicemix/scripts/servicemix-publish-schema.sh (added)
+++ servicemix/scripts/servicemix-publish-schema.sh Tue May 6 03:50:28 2008
@@ -0,0 +1,14 @@
+#!/usr/local/bin/bash
+
+RELEASE_REPO=/www/people.apache.org/repo/m2-ibiblio-rsync-repository
+SNAPSHOT_REPO=/www/people.apache.org/repo/m2-snapshot-repository
+SCHEMA_DIR=/www/servicemix.apache.org/schema
+
+#copy the schema
+mkdir -p $SCHEMA_DIR
+find $RELEASE_REPO/org/apache/servicemix -name *.xsd | xargs -I {} cp {} $SCHEMA_DIR
+find $SNAPSHOT_REPO/org/apache/servicemix -name *.xsd | xargs ./copy-snapshot-files.rb $SCHEMA_DIR
+
+#copy the archetype catalog files
+find $RELEASE_REPO/org/apache/servicemix/tooling/catalog -name *.xml | xargs ./servicemix-publish-catalog.rb
+find $SNAPSHOT_REPO/org/apache/servicemix/tooling/catalog -name *.xml | xargs ./servicemix-publish-catalog.rb
Propchange: servicemix/scripts/servicemix-publish-schema.sh
------------------------------------------------------------------------------
svn:executable = *