summaryrefslogtreecommitdiffstats
path: root/db-move
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-12 07:09:24 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-12 07:09:24 +0100
commit35e5070403ddae96238bcce6356f4b9713c96675 (patch)
tree28be8d3ae5981d28369c2854447964d581915ed4 /db-move
parent0dcc6b02d0ed7cf25e9493667030ded9525473ce (diff)
downloaddbscripts-35e5070403ddae96238bcce6356f4b9713c96675.tar.gz
dbscripts-35e5070403ddae96238bcce6356f4b9713c96675.tar.xz
Move as much as we can out to a config file
This should allow us to move FTP and SVN placement around Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move9
1 files changed, 3 insertions, 6 deletions
diff --git a/db-move b/db-move
index 88a8cb6..5be1813 100755
--- a/db-move
+++ b/db-move
@@ -17,13 +17,10 @@ arch="$4"
export CARCH="$arch"
-##### Arch specific stuff. TODO make this configurable #####
-ftppath_from="/home/ftp/$repofrom/os/$arch/"
-ftppath_to="/home/ftp/$repoto/os/$arch/"
-svnpath="file:///home/svn-packages"
+ftppath_from="$FTP_BASE/$repofrom/os/$arch/"
+ftppath_to="$FTP_BASE/$repoto/os/$arch/"
svnrepo_from="$repofrom-$arch"
svnrepo_to="$repoto-$arch"
-############################################################
[ "$UID" = "" ] && UID=$(uid)
@@ -56,7 +53,7 @@ repo_lock $repofrom $arch
/bin/mkdir -p "$WORKDIR"
cd "$WORKDIR"
-/usr/bin/svn checkout -N $svnpath checkout
+/usr/bin/svn checkout -N $SVN_PATH checkout
cd checkout
/usr/bin/svn up -q $packagename