mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
rpmdist.mk: Add target rpm-update
This commit is contained in:
parent
3a0d1cebbd
commit
270bc12609
1 changed files with 9 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ rpm-build: config rpmbuild.dist
|
|||
rpm-install: config rpminstall.dist
|
||||
rpm-reinstall: rpm-uninstall rpm-clean rpm-install
|
||||
rpm-rebuild: rpm-clean rpm-build
|
||||
|
||||
rpm-update: rpmupdate.dist
|
||||
|
||||
clean.rpm:
|
||||
rm -rf $(DIST_DIR) *.dist CURRENT_RPM_SRC
|
||||
|
||||
|
|
@ -146,6 +147,13 @@ rpminstall.dist: $(DIST_PCKG_RPM)
|
|||
done
|
||||
touch $@
|
||||
|
||||
rpmupdate.dist: $(DIST_PCKG_RPM)
|
||||
@set -e; for p in $^; do \
|
||||
echo + updating $$p ;\
|
||||
sudo /bin/rpm -U --replacepkgs --replacefiles $$p; \
|
||||
done
|
||||
touch $@
|
||||
|
||||
rpmuninstall.dist:
|
||||
@set -e; for s in devel run; do \
|
||||
if /bin/rpm -q $(RPM_PROJECT)-$$s > /dev/null 2>&1 ; then \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue