aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 21cf9be..93f1e0a 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -580,6 +580,25 @@ function svn_add {
}
+function svn_mkdir {
+
+ # svn make directory
+ [ $# -ne 1 ] && handle_error $ERROR_PAR_NUMBER
+
+ DIR_LIST=`echo $1 | tr '/' ' '`
+
+ DIR=""
+ for i in $DIR_LIST; do
+ DIR=$DIR/$i
+ if [ ! -e ${DIR:1} ]; then
+ su_svn mkdir ${DIR:1}
+ elif [ -d "${DIR:1}" ] && [ ! -d "${DIR:1}/.svn" ]; then
+ su_svn add ${DIR:1}
+ fi
+ done
+
+}
+
# -----------------------------------------------
# update jail functions
# -----------------------------------------------