diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-11 17:56:41 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-11 17:56:41 +0000 |
commit | 3afcda798050736c893d6eef885c51a36ef0ac1f (patch) | |
tree | 6be8494b1e66d50d4ac45d230bfc4191b4d57dbf /trunk/src | |
parent | dbd89e871f25971e63256e4b94c1796c791f3b28 (diff) | |
download | simplepkg-3afcda798050736c893d6eef885c51a36ef0ac1f.tar.gz simplepkg-3afcda798050736c893d6eef885c51a36ef0ac1f.tar.bz2 |
mkbuild: new function submit_cleanup
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@651 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src')
-rwxr-xr-x | trunk/src/mkbuild | 16 |
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 } |