mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 23:23:55 +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,6 +77,7 @@ rpm-build: config rpmbuild.dist
|
||||||
rpm-install: config rpminstall.dist
|
rpm-install: config rpminstall.dist
|
||||||
rpm-reinstall: rpm-uninstall rpm-clean rpm-install
|
rpm-reinstall: rpm-uninstall rpm-clean rpm-install
|
||||||
rpm-rebuild: rpm-clean rpm-build
|
rpm-rebuild: rpm-clean rpm-build
|
||||||
|
rpm-update: rpmupdate.dist
|
||||||
|
|
||||||
clean.rpm:
|
clean.rpm:
|
||||||
rm -rf $(DIST_DIR) *.dist CURRENT_RPM_SRC
|
rm -rf $(DIST_DIR) *.dist CURRENT_RPM_SRC
|
||||||
|
|
@ -146,6 +147,13 @@ rpminstall.dist: $(DIST_PCKG_RPM)
|
||||||
done
|
done
|
||||||
touch $@
|
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:
|
rpmuninstall.dist:
|
||||||
@set -e; for s in devel run; do \
|
@set -e; for s in devel run; do \
|
||||||
if /bin/rpm -q $(RPM_PROJECT)-$$s > /dev/null 2>&1 ; then \
|
if /bin/rpm -q $(RPM_PROJECT)-$$s > /dev/null 2>&1 ; then \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue