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
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
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