mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Remove leftover build files and build results before creating package
This commit is contained in:
parent
21f522669d
commit
2b7f7a71a1
14
pkg/arch/Makefile
Normal file → Executable file
14
pkg/arch/Makefile
Normal file → Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user