]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
mkbuild: -sa: remove files that should not be stored at the mkbuilds repository
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 11 Dec 2008 17:52:31 +0000 (17:52 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 11 Dec 2008 17:52:31 +0000 (17:52 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@650 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkbuild

index 7fba3d8f3e0db067537973964c29cc4bca5feda9..8a5fa0539420a113a33e5a4f784bf396c519857e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 #
-# mkbuild: SlackBuild scripts maker
-# feedback: rudsonaalves at yahoo.com.br | gpl
+# mkbuild: SlackBuild script maker
+# feedback: rudsonaalves at yahoo.com.br
 #
 #  mkbuild is free software; you can redistribute it and/or modify it under the
 #  terms of the GNU General Public License as published by the Free Software
@@ -17,6 +17,7 @@
 #
 # Based in model generic.SlackBuild of Luiz
 # Version $Rev$ - $Author$
+#
 
 PROG_VERSION="1.2.8"
 PROG_NAME="`basename $0`"
@@ -583,8 +584,7 @@ function submit_slackbuild {
   # add SlackBuild
   svn_copy $WORK/$SLACKBUILD $SLACKBUILD_PATH
 
-  # check slack-required
-  # add slack-required
+  # check and add slack-required
   [ -e $WORK/slack-required ] && svn_copy $WORK/slack-required $SLACKBUILD_PATH
 
   for i in `ls $WORK | egrep -v '(SlackBuild|old|slack-required|.mkbuild$|.tmp$)\*{0,1}$'`; do
@@ -602,6 +602,11 @@ function submit_slackbuild {
 
   cd $WORK
 
+  # remove files that should not be stored at the mkbuilds repository
+  if [ "$(cd $(dirname $MKBUILD_PATH) ; pwd)" == "$WORK" ]; then
+    rm -f *.old *.tmp *.SlackBuild *.slack-required
+  fi
+
 }
 
 function submit_mkbuild {
@@ -642,6 +647,11 @@ function submit_mkbuild {
 
   cd $WORK
 
+  # remove files that should not be stored at the mkbuilds repository
+  if [ "$(cd $(dirname $MKBUILD_PATH) ; pwd)" == "$WORK" ]; then
+    rm -f *.old *.tmp *.SlackBuild *.slack-required
+  fi
+
 }
 
 # ----------------------------------------------------------------