From fd95b52dae10cf944df591cd67d5124b927e1369 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 28 Nov 2008 19:53:03 +0000 Subject: all previous "commit" functions and command line options changed to "submit" git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@610 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'trunk/lib') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 45fd6ae..15bad2f 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -569,8 +569,14 @@ function sync_repo { # input: $1 - svn directory name # $2 - svn address [ $# -ne 2 ] && exit 5 - cd $1 - su_svn update || build_repo $1 $2 + + local folder url + folder="$1" + url="$1" + + mkdir -p $folder + cd $folder + su_svn update || build_repo $folder $url } -- cgit v1.2.3