aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-xtrunk/src/mkbuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 8a5fa05..fa4ca6b 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -600,13 +600,9 @@ function submit_slackbuild {
fi
done
+ submit_cleanup
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 {
@@ -645,11 +641,19 @@ function submit_mkbuild {
fi
done
+ submit_cleanup
cd $WORK
+}
+
+function submit_cleanup {
+
# 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
+ (
+ cd $WORK
+ rm -f *.old *.tmp *.SlackBuild *.slack-required
+ )
fi
}