aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkbuild')
-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
+
}
# ----------------------------------------------------------------