rpmdist.mk: Next attempt

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-04-27 14:57:29 +00:00
commit 43102d8477

View file

@ -137,7 +137,7 @@ $(DIST_PCKG_SRPM): $(DIST_PCKG_DIR)/$(PCKG_TAR)
$(DIST_PCKG_RPM): $(DIST_PCKG_DIR)/$(PCKG_TAR)
if [ $< -nt $(RPMS_DIR)/$(notdir $@) ]; then $(RPMBUILD) -tb $<; fi
cp $(RPMS_DIR)/$(PCKG_RPM_RUN_I386) $(dir $@)/
cp $(addprefix $(RPMS_DIR)/,$(notdir $(DIST_PCKG_RPM))) $(dir $@)/
$(DIST_PCKG_DIR)/CURRENT_%: $(TOPDIR)/VERSION
echo $(CURRENT_$*) > $@
@ -251,7 +251,7 @@ rpm-check-release:
fi
rpm-release: rpm-update-release
@if ! grep -q "^$(LAST_RPM_VERSION)\$" VERSION; then \
@if ! grep -q "^$(LAST_RPM_VERSION)$$" VERSION; then \
$(check_cvs_sync) ;\
echo "+ version $(RPM_VERSION) doesn't match latest released rpm version "\
"$(LAST_RPM_VERSION), building a new release" ;\