From 0103d170ccc398914bf00c24d579c2f572f5aff7 Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 3 Feb 2009 02:57:56 +0000 Subject: some changes for #73 and #40 git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@791 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/mkbuild | 16 ++++++++++++++-- 1 file 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 } -- cgit v1.2.3