aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-02-03 02:57:56 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-02-03 02:57:56 +0000
commit0103d170ccc398914bf00c24d579c2f572f5aff7 (patch)
treeda33f2ef22bec9034c0a5a50ae4b5ea6b3989d57 /trunk/src/mkbuild
parentc7ef9143d86d5aaed70a011bfcc52627fe4203cc (diff)
downloadsimplepkg-0103d170ccc398914bf00c24d579c2f572f5aff7.tar.gz
simplepkg-0103d170ccc398914bf00c24d579c2f572f5aff7.tar.bz2
some changes for #73 and #40
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@791 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-xtrunk/src/mkbuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index a61a059..a016765 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -1671,8 +1671,20 @@ function check_manifest_signature {
function delete_mkbuilds {
- # TODO
- true
+ # delete content from a mkbuild folder
+ # usage: delete_mkbuilds [file]
+
+ local file="$1"
+ local folder="`basename $MKBUILD_NAME`"
+
+ if [ -d "$folder" ]; then
+ if [ -z "$1" ]; then
+ # Delete the whole mkbuild folder
+ svn_del $folder
+ elif [ -e "$folder/$file" ]; then
+ svn_del $folder/$file
+ fi
+ fi
}