Remove leftover build files and build results before creating package

This commit is contained in:
Erik Nolte 2011-08-08 10:47:48 -06:00
parent 21f522669d
commit 2b7f7a71a1

14
pkg/arch/Makefile Normal file → Executable file
View File

@ -2,10 +2,22 @@
# prior to committing changes to git.
local:
makepkg -f -p PKGBUILD-local --asroot
-rm -rf ../../build
-rm salt-*.pkg.tar.xz
-rm -rf pkg
if [ "$$(id -u)" -eq 0 ]; \
then \
makepkg -f -p PKGBUILD-local --asroot; \
else \
makepkg -f -p PKGBUILD-local; \
fi
rm -rf pkg
-rm -rf ../../build
install: local
-/etc/rc.d/salt-monitor stop
-/etc/rc.d/salt-minion stop
-/etc/rc.d/salt-master stop
-yes | pacman -R salt-local
-yes | pacman -R salt-git
-yes | pacman -R salt