From: Jim Meyering Date: Sun, 13 Jul 2014 17:24:33 +0000 (-0700) Subject: build: adjust new rule not to depend on bash-4.x X-Git-Tag: v8.23~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d82df724ef1ee0809aa294c68f7cc11c9c0f0f5;p=thirdparty%2Fcoreutils.git build: adjust new rule not to depend on bash-4.x * man/local.mk (man/dynamic-deps.mk): Use the same code to derive FOO from man/FOO.1 as in the .x.1 rule below. Using the more concise "name=$${man:4: -2}" is not portable enough. --- diff --git a/man/local.mk b/man/local.mk index 0f0b66e252..a4117b110e 100644 --- a/man/local.mk +++ b/man/local.mk @@ -61,7 +61,7 @@ CLEANFILES += man/dynamic-deps.mk man/dynamic-deps.mk: Makefile $(AM_V_GEN)rm -f $@ $@-t $(AM_V_at)for man in $(ALL_MANS); do \ - name=$${man:4: -2} ; # Space is important \ + name=`echo "$$man"|sed 's|.*/||; s|\.1$$||'` || exit 1; \ case $$name in \ arch) prog='uname';; \ install) prog='ginstall';; \