diff options
author | Jim Meyering <meyering@fb.com> | 2014-07-13 10:24:33 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-07-13 10:30:24 -0700 |
commit | 4d82df724ef1ee0809aa294c68f7cc11c9c0f0f5 (patch) | |
tree | 52fbd33ca25e962ca6da5a86b87e468532f3f572 /man | |
parent | 71e2ea773414b2316bbe6b803b9a52c38d3752e8 (diff) | |
download | coreutils-4d82df724ef1ee0809aa294c68f7cc11c9c0f0f5.tar.gz |
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.
Diffstat (limited to 'man')
-rw-r--r-- | man/local.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/local.mk b/man/local.mk index 0f0b66e25..a4117b110 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';; \ |