aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 19:53:03 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 19:53:03 +0000
commitfd95b52dae10cf944df591cd67d5124b927e1369 (patch)
treea98225a44bd24e47ad1c6c3a47701bda98dd3c76 /trunk/lib
parent7ccd081e2da12aa0a1a534bf2567951f3f945b47 (diff)
downloadsimplepkg-fd95b52dae10cf944df591cd67d5124b927e1369.tar.gz
simplepkg-fd95b52dae10cf944df591cd67d5124b927e1369.tar.bz2
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
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh10
1 files changed, 8 insertions, 2 deletions
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
}