From b01ef782f075cce63c7d9b48744c34a2911577a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Thu, 12 May 2022 21:30:15 +0200 Subject: [PATCH] scripts/dumpconf: Bring installation rules in line with other scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until recently dumpconf might have been installed in two different locations, /etc/init.d/ and /lib/s390-tools/. As dumpconf is now part of the helper scripts in the scripts directory, extend the installation rule and add the %S390_TOOLS_VERSION% wildcard to the script along the way for correct version output. The installation rule in the systemd/Makefile is removed, bringing it in line with cpictl. Acked-by: Stefan Haberland Signed-off-by: Jan Höppner --- scripts/Makefile | 14 ++++++++++---- scripts/dumpconf | 2 +- systemd/Makefile | 2 -- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/Makefile b/scripts/Makefile index bed7d6ef..b8f7ac4d 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -2,6 +2,8 @@ include ../common.mak SCRIPTS = dbginfo.sh zfcpdbf zipl-switch-to-blscfg scsi_logging_level SCRIPTS += sclpdbf +# Helper scripts controlled by corresponding systemd services +SD_HELPER_SCRIPTS = cpictl dumpconf MAN_PAGES = dbginfo.sh.1 zfcpdbf.1 zipl-switch-to-blscfg.1 all: @@ -17,10 +19,14 @@ install: chmod 755 $(DESTDIR)$(BINDIR)/$$i; \ done - sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' cpictl > \ - $(DESTDIR)$(TOOLS_LIBDIR)/cpictl - chown $(OWNER):$(GROUP) $(DESTDIR)$(TOOLS_LIBDIR)/cpictl - chmod 755 $(DESTDIR)$(TOOLS_LIBDIR)/cpictl + @for i in $(SD_HELPER_SCRIPTS); \ + do \ + cat $$i | \ + sed -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \ + >$(DESTDIR)$(TOOLS_LIBDIR)/$$i; \ + chown $(OWNER):$(GROUP) $(DESTDIR)$(TOOLS_LIBDIR)/$$i; \ + chmod 755 $(DESTDIR)$(TOOLS_LIBDIR)/$$i; \ + done @for i in $(MAN_PAGES); \ do \ diff --git a/scripts/dumpconf b/scripts/dumpconf index 02256655..83902f7e 100755 --- a/scripts/dumpconf +++ b/scripts/dumpconf @@ -101,7 +101,7 @@ EOF printversion() { cat <