aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-05-27 14:17:14 +0000
committerNicolas Vigier <boklm@mageia.org>2011-05-27 14:17:14 +0000
commitf07a283bf2ef6315b56bde9abcd6531f15345c46 (patch)
tree8e48ede658175f08a8e7184d7052534f30d38cf3
parent0c98c53a682e79ec546773bc77aa32403f8db524 (diff)
downloadrelease-f07a283bf2ef6315b56bde9abcd6531f15345c46.tar
release-f07a283bf2ef6315b56bde9abcd6531f15345c46.tar.gz
release-f07a283bf2ef6315b56bde9abcd6531f15345c46.tar.bz2
release-f07a283bf2ef6315b56bde9abcd6531f15345c46.tar.xz
release-f07a283bf2ef6315b56bde9abcd6531f15345c46.zip
add script to copy/update cauldron to tmp directory
-rw-r--r--config5
-rwxr-xr-xupdate-cauldron-to-tmp7
2 files changed, 12 insertions, 0 deletions
diff --git a/config b/config
index eebb45e..1afa727 100644
--- a/config
+++ b/config
@@ -2,3 +2,8 @@ NEW_RELEASE=1
PKG_SVN=svn+ssh://svn.mageia.org/svn/test/packages/cauldron
BIN_SVN=svn+ssh://svn.mageia.org/svn/test/binrepos/cauldron
MIRROR_DIR=/distrib/test/mirror
+DISTRIB_DIR="$MIRROR_DIR/distrib"
+
+CAULDRON_MIRROR_DIR="$DISTRIB_DIR/cauldron"
+NEW_RELEASE_MIRROR_DIR="$DISTRIB_DIR/$NEW_RELEASE"
+NEW_RELEASE_TMP_DIR="$DISTRIB_DIR/.tmp-release-$NEW_RELEASE"
diff --git a/update-cauldron-to-tmp b/update-cauldron-to-tmp
new file mode 100755
index 0000000..f7f8701
--- /dev/null
+++ b/update-cauldron-to-tmp
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+SCRIPTSDIR=$(dirname $0)
+. $SCRIPTSDIR/config
+
+RSYNC_OPTIONS="-avH --delete-after -S"
+rsync $RSYNC_OPTIONS "$CAULDRON_MIRROR_DIR/" "$NEW_RELEASE_TMP_DIR"