]> source.dussan.org Git - archiva.git/commitdiff
o adding a couple more properties
authorJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 01:26:12 +0000 (01:26 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 01:26:12 +0000 (01:26 +0000)
o we only ever run this from this machine

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471317 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/synchronize.properties
maven-meeper/src/bin/synchronize.sh

index 5ef9a6068234dca09c3df3bc4f916d94004faa53..b557651d5f84de03bf47b6fb8a1b40917c181897 100644 (file)
@@ -7,3 +7,7 @@ export SYNCOPATE=$SYNC_TOOLS/syncopate
 export M2_SYNC=$SYNC_TOOLS/m2-sync
 export REPOCLEAN=$TOOLS_BASE/m1-m2-conversion
 export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt
+
+export STAGING_DIR=$HOME/repository-staging/to-ibiblio
+export MAVEN1_REPO=$STAGING_DIR/maven
+export MAVEN2_REPO=$STAGING_DIR/maven2
index e06d30879ea336d549434a70021cf25c9fda9a81..281a1df284033217e2dd84d7ca69bf93cc0377c8 100755 (executable)
@@ -72,7 +72,7 @@ retval=$?; if [ $retval != 0 ]; then exit $retval; fi
 echo "Removing commons-logging 1.1-dev"
 
 # hack prevent commons-logging-1.1-dev
-CL=$HOME/repository-staging/to-ibiblio/maven2/commons-logging/commons-logging
+CL=$MAVEN2_REPO/commons-logging/commons-logging
 rm -rf $CL/1.1-dev
 grep -v 1.1-dev $CL/maven-metadata.xml > $CL/maven-metadata.xml.tmp
 mv $CL/maven-metadata.xml.tmp $CL/maven-metadata.xml
@@ -113,10 +113,6 @@ retval=$?; if [ $retval != 0 ]; then exit $retval; fi
 
 echo "Copying rewrite rules into place"
 
-if [ "hostname" == $CENTRAL_HOST ]; then
-  cp $M1_M2_REWRITE_RULES $HOME/repository-staging/to-ibiblio/maven/.htaccess
-else
-  scp $M1_M2_REWRITE_RULES maven@maven.org:~maven/repository-staging/to-ibiblio/maven/.htaccess
-fi
+cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess
     
 scp $M1_M2_REWRITE_RULES maven@login.ibiblio.org:/public/html/maven/.htaccess