diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 02:47:33 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 02:47:33 +0000 |
commit | 25adde3f586f0bfe4b3d8a59b26080306f1721e4 (patch) | |
tree | 7f3b9fb946095f696c5d8a680d1c7a3cd0f66b4b /trunk/lib | |
parent | 3896f087f2db87e5e3dcce073e99f6780a336d6e (diff) | |
download | simplepkg-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.sh | 11 |
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> |