summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
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: