]> source.dussan.org Git - archiva.git/commitdiff
o pass the synchronize.properties around to other scripts
authorJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 01:21:15 +0000 (01:21 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 01:21:15 +0000 (01:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471312 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/synchronize.sh

index 6d78d48c1eae2d095e1376230bdc72199175ce15..e06d30879ea336d549434a70021cf25c9fda9a81 100755 (executable)
@@ -9,6 +9,9 @@
 # 6. Copy the mod_rewrite rules to the Maven 1.x repository @ Ibiblio
 # ------------------------------------------------------------------------
 
+dir=`pwd`
+syncProperties=$dir/synchronize.properties
+
 MODE=$1
 
 PID=$$
@@ -19,7 +22,7 @@ if [ ! -z "$RUNNING" ]; then
   exit 1
 fi
 
-. synchronize.properties
+. $syncProperties
 
 echo "Using the following settings:"
 echo "CENTRAL_HOST = $CENTRAL_HOST"
@@ -55,7 +58,7 @@ retval=$?; if [ $retval != 0 ]; then exit $retval; fi
 echo "Running repoclean"
 
 (
-  $REPOCLEAN/m1-m2-conversion.sh
+  $REPOCLEAN/m1-m2-conversion.sh $syncProperties
   retval=$?; if [ $retval != 0 ]; then exit $retval; fi
 )
 retval=$?; if [ $retval != 0 ]; then exit $retval; fi
@@ -97,7 +100,7 @@ echo "Synchronizing to ibiblio"
 
 (
   cd $SYNC_TOOLS
-  ./sync-central-to-ibiblio.sh
+  ./sync-central-to-ibiblio.sh $syncProperties
   retval=$?; if [ $retval != 0 ]; then exit $retval; fi
 )
 retval=$?; if [ $retval != 0 ]; then exit $retval; fi