Author: gertv
Date: Tue May 6 23:43:27 2008
New Revision: 654007
URL: http://svn.apache.org/viewvc?rev=654007&view=rev
Log:
Fixing relative subscript resolution when script is started from within another
directory
Modified:
servicemix/scripts/servicemix-publish-schema.sh
Modified: servicemix/scripts/servicemix-publish-schema.sh
URL:
http://svn.apache.org/viewvc/servicemix/scripts/servicemix-publish-schema.sh?rev=654007&r1=654006&r2=654007&view=diff
==============================================================================
--- servicemix/scripts/servicemix-publish-schema.sh (original)
+++ servicemix/scripts/servicemix-publish-schema.sh Tue May 6 23:43:27 2008
@@ -1,5 +1,8 @@
#!/usr/local/bin/bash
+# switching to the script directory to resolve relative paths
+cd `dirname $0`
+
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