diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-02-20 10:23:07 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-03-11 08:27:10 -0700 |
commit | 9b7b2a7e774f307b6b5ab398908e883364af7247 (patch) | |
tree | 7ca67b25cda5844f44db938cf0adcf1dfaae4441 /db-functions | |
parent | 1ef058dad91a5ca82db2744776251a2ab68bcf90 (diff) |
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-functions | 15 |
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: |