]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
some changes for #73 and #40
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 3 Feb 2009 02:57:56 +0000 (02:57 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 3 Feb 2009 02:57:56 +0000 (02:57 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@791 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkbuild

index a61a05980c64deed47d8bfb0460e45dd43fc7f93..a0167659fc24354bae296473a1b68f3581bc4aca 100755 (executable)
@@ -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
 
 }