aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 02:47:33 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 02:47:33 +0000
commit25adde3f586f0bfe4b3d8a59b26080306f1721e4 (patch)
tree7f3b9fb946095f696c5d8a680d1c7a3cd0f66b4b /trunk/lib
parent3896f087f2db87e5e3dcce073e99f6780a336d6e (diff)
downloadsimplepkg-25adde3f586f0bfe4b3d8a59b26080306f1721e4.tar.gz
simplepkg-25adde3f586f0bfe4b3d8a59b26080306f1721e4.tar.bz2
cleanup
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@577 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 07954c3..0810fd7 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -579,6 +579,17 @@ function svn_add {
}
+function svn_del {
+
+ if [ -e "$1" ] && [ -d "`dirname $1`/.svn" ] && svn_check $1; then
+ chown_svn $1 && chgrp_svn $1
+ su_svn del --force $1
+ else
+ rm $1
+ fi
+
+}
+
function svn_copy {
# usage: svn_copy <orig> <dest>