]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
generic.mkSlackBuild: clean_builds now compliant with standard --cleanup behaviour
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 4 Sep 2008 02:47:19 +0000 (02:47 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 4 Sep 2008 02:47:19 +0000 (02:47 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@522 04377dda-e619-0410-9926-eae83683ac58

trunk/mkbuild/generic.mkSlackBuild

index 67776ea41987c92c6f30e67d8ebcf9c28298af00..a9b07ef92b8675b93dec5d25d9984e1d9eb01659 100644 (file)
@@ -406,7 +406,7 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO
 
 <clean_builds> off
 # Delete source and build directories if requested
-if [ "$CLEANUP" == "yes" ]; then
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
   rm -rf "$PKG_WORK" "$PKG"
 fi
 </clean_builds>