summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-20 19:23:07 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-03-11 16:27:10 +0100
commit9b7b2a7e774f307b6b5ab398908e883364af7247 (patch)
tree7ca67b25cda5844f44db938cf0adcf1dfaae4441 /db-functions
parent1ef058dad91a5ca82db2744776251a2ab68bcf90 (diff)
downloaddbscripts-9b7b2a7e774f307b6b5ab398908e883364af7247.tar.gz
dbscripts-9b7b2a7e774f307b6b5ab398908e883364af7247.tar.xz
Add per-repo SVN configs
This could be useful if we move community to a separate SVN repo Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions15
1 files changed, 15 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index c105dab..99de756 100644
--- a/db-functions
+++ b/db-functions
@@ -92,4 +92,19 @@ check_pkg_arch () { #check_pkg_arch pkgfile arch
fi
}
+get_svnpath () { #get_svnpath reponame
+ local var
+ local repopath
+ var="\$SVNREPO_${1}"
+
+ eval repopath=${var}
+ if [ -z "$repopath" ]; then
+ echo "ERROR: SVN path not defined for '${1}'" >2
+ echo " Please check SVNREPO_${1} config setting" >2
+ fi
+
+ echo "$repopath"
+}
+
+
# vim: set ts=4 sw=4 noet ft=sh: