o separate out syncing of rewrites

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@480687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-11-29 19:18:14 +00:00
parent 63f6445bd8
commit 9d1dd1b91c
2 changed files with 19 additions and 7 deletions

View File

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

View File

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