aboutsummaryrefslogtreecommitdiffstats
path: root/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh
diff options
context:
space:
mode:
Diffstat (limited to 'maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh')
-rwxr-xr-xmaven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh18
1 files changed, 18 insertions, 0 deletions
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
+