aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-11 17:52:31 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-11 17:52:31 +0000
commitdbd89e871f25971e63256e4b94c1796c791f3b28 (patch)
tree22e41c01f35443806f8f14910379bbec97f618a1
parent74626d93cb8d13b58f7103e4558e5db8b82ec507 (diff)
downloadsimplepkg-dbd89e871f25971e63256e4b94c1796c791f3b28.tar.gz
simplepkg-dbd89e871f25971e63256e4b94c1796c791f3b28.tar.bz2
mkbuild: -sa: remove files that should not be stored at the mkbuilds repository
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@650 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/src/mkbuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 7fba3d8..8a5fa05 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -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
+
}
# ----------------------------------------------------------------