summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-11 22:09:24 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-11 22:09:24 -0800
commit35e5070403ddae96238bcce6356f4b9713c96675 (patch)
tree28be8d3ae5981d28369c2854447964d581915ed4 /db-update
parent0dcc6b02d0ed7cf25e9493667030ded9525473ce (diff)
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-update')
-rwxr-xr-xdb-update11
1 files changed, 4 insertions, 7 deletions
diff --git a/db-update b/db-update
index e2a6534..84764eb 100755
--- a/db-update
+++ b/db-update
@@ -14,12 +14,9 @@ arch="$2"
export CARCH="$arch"
-##### Arch specific stuff. TODO make this configurable #####
-ftppath="/home/ftp/$reponame/os/$arch/"
-svnpath="file:///home/svn-packages"
+ftppath="$FTP_BASE/$reponame/os/$arch/"
svnrepo="$reponame-$arch"
-stagedir="$HOME/staging/$reponame"
-############################################################
+stagedir="$STAGING/$reponame"
[ "$UID" = "" ] && UID=$(uid)
@@ -102,7 +99,7 @@ if [ -n "$ADDPKGS" ]; then
echo "==> Processing new/updated packages for repository '$reponame'..." >&2
cd "$WORKDIR"
- /usr/bin/svn checkout -N $svnpath checkout
+ /usr/bin/svn checkout -N $SVN_PATH checkout
cd checkout
for pkg in $ADDPKGS; do
@@ -154,7 +151,7 @@ if [ -n "$REMPKGS" ]; then
if [ ! -d "$WORKDIR/checkout" ]; then
cd "$WORKDIR"
- /usr/bin/svn checkout -N $svnpath checkout
+ /usr/bin/svn checkout -N $SVN_PATH checkout
fi
cd "$WORKDIR/checkout"