aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}