From 9d1dd1b91ca6960ad676b877eab5f6748a940054 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Wed, 29 Nov 2006 19:18:14 +0000 Subject: [PATCH] o separate out syncing of rewrites git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@480687 13f79535-47bb-0310-9956-ffa450edef68 --- .../synchronize-rewrite-rules-to-ibiblio.sh | 18 ++++++++++++++++++ maven-meeper/src/bin/synchronize.sh | 8 +------- 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100755 maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh diff --git a/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh b/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh new file mode 100755 index 000000000..ed99c168c --- /dev/null +++ b/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +[ "$1" = "" ] && echo && echo "You must pass in the synchronize.properties file!" && echo && exit + +. $1 + +# ------------------------------------------------------------------------ +# Copy the mod_rewrite rules to the Maven 1.x repository +# ------------------------------------------------------------------------ + +[ "$MODE" = "batch" ] && echo && echo "Press any key to copy the m1 to m2 rewrite rules, or hit ^C to quit." && echo + +echo "Copying rewrite rules into place" + +cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess + +scp $M1_M2_REWRITE_RULES $IBIBLIO_SYNC_HOST:$M1_IBIBLIO_SYNC_DIR/.htaccess + diff --git a/maven-meeper/src/bin/synchronize.sh b/maven-meeper/src/bin/synchronize.sh index b8c15fbe8..4ee418a3e 100755 --- a/maven-meeper/src/bin/synchronize.sh +++ b/maven-meeper/src/bin/synchronize.sh @@ -111,12 +111,6 @@ retval=$?; if [ $retval != 0 ]; then exit $retval; fi # Copy the mod_rewrite rules to the Maven 1.x repository # ------------------------------------------------------------------------ -[ "$MODE" = "batch" ] && echo && echo "Press any key to copy the m1 to m2 rewrite rules, or hit ^C to quit." && echo - -echo "Copying rewrite rules into place" - -cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess - -scp $M1_M2_REWRITE_RULES maven@login.ibiblio.org:/public/html/maven/.htaccess +./synchronize-rewrite-rules-to-ibiblio.sh $syncProperties ) | tee $SYNC_REPORTS/last-sync-results.txt ) 2>&1 -- 2.39.5