diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-02-03 02:57:56 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-02-03 02:57:56 +0000 |
commit | 0103d170ccc398914bf00c24d579c2f572f5aff7 (patch) | |
tree | da33f2ef22bec9034c0a5a50ae4b5ea6b3989d57 | |
parent | c7ef9143d86d5aaed70a011bfcc52627fe4203cc (diff) | |
download | simplepkg-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
-rwxr-xr-x | trunk/src/mkbuild | 16 |
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 } |