From 948aaa7c52e64b08e71043a4ea4f793b88a68f57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 3 Apr 2017 12:15:33 -0400 Subject: [PATCH] tree-wide: standardize on $(PACKAGE_VERSION) for the version string We defined both $(VERSION) and $(PACKAGE_VERSION) with the same contents. $(PACKAGE_VERSION) is slightly more descriptive, so settle on that, and drop the other define. --- Makefile.am | 7 +++---- configure.ac | 2 +- src/analyze/analyze.c | 2 +- src/boot/efi/boot.c | 8 ++++---- src/boot/efi/stub.c | 2 +- src/hwdb/hwdb.c | 2 +- src/libudev/libudev.pc.in | 2 +- src/test/test-libudev.c | 2 +- src/test/test-udev.c | 2 +- src/udev/scsi_id/scsi_id.c | 2 +- src/udev/udev-ctrl.c | 2 +- src/udev/udev.pc.in | 2 +- src/udev/udevadm-hwdb.c | 2 +- src/udev/udevadm-info.c | 2 +- src/udev/udevadm-test.c | 2 +- src/udev/udevadm.c | 2 +- src/udev/udevd.c | 4 ++-- 17 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Makefile.am b/Makefile.am index 33e77d4329c..120c8a9bd6f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6269,7 +6269,6 @@ substitutions = \ '|exec_prefix=$(exec_prefix)|' \ '|libdir=$(libdir)|' \ '|includedir=$(includedir)|' \ - '|VERSION=$(VERSION)|' \ '|rootprefix=$(rootprefix)|' \ '|udevlibexecdir=$(udevlibexecdir)|' \ '|SUSHELL=$(SUSHELL)|' \ @@ -6400,7 +6399,7 @@ XSLTPROC_FLAGS = \ --stringparam funcsynopsis.style ansi \ --stringparam man.authors.section.enabled 0 \ --stringparam man.copyright.section.enabled 0 \ - --stringparam systemd.version $(VERSION) \ + --stringparam systemd.version $(PACKAGE_VERSION) \ --path '$(builddir)/man:$(srcdir)/man' XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc) @@ -6634,11 +6633,11 @@ built-sources: $(BUILT_SOURCES) .PHONY: git-tag git-tag: - git tag -s "v$(VERSION)" -m "systemd $(VERSION)" + git tag -s "v$(PACKAGE_VERSION)" -m "systemd $(PACKAGE_VERSION)" .PHONY: git-tar git-tar: - git archive -o systemd-$(VERSION).tar.gz --prefix=systemd-$(VERSION)/ HEAD + git archive -o systemd-$(PACKAGE_VERSION).tar.gz --prefix=systemd-$(PACKAGE_VERSION)/ HEAD %.asc: % gpg2 --detach-sign -a -o $@ $< diff --git a/configure.ac b/configure.ac index c8e886a247b..16c5d429113 100644 --- a/configure.ac +++ b/configure.ac @@ -1674,7 +1674,7 @@ AC_CONFIG_FILES([ AC_OUTPUT AC_MSG_RESULT([ - $PACKAGE_NAME $VERSION + $PACKAGE_NAME $PACKAGE_VERSION libcryptsetup: ${have_libcryptsetup} PAM: ${have_pam} diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index ac0470b20d9..1eb2ca0ccf6 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -627,7 +627,7 @@ static int analyze_plot(sd_bus *bus) { "\n" "\n" "\n\n" - "\n\n", VERSION); + "\n\n", PACKAGE_VERSION); /* style sheet */ svg("\n