diff options
author | ru <ru@FreeBSD.org> | 2012-08-24 06:55:16 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2012-08-24 06:55:16 +0000 |
commit | c976f327db47f18b56600363a382ce96baecaec5 (patch) | |
tree | 9800028f7e9c0229f7c6431d7cf1a81249a5e260 /gnu/usr.bin | |
parent | dcb5de60c29804b26c39731951ff623a25155899 (diff) | |
download | FreeBSD-src-c976f327db47f18b56600363a382ce96baecaec5.zip FreeBSD-src-c976f327db47f18b56600363a382ce96baecaec5.tar.gz |
A workaround in r238563 was for makes (notably bmake) without the
internal knowledge that "cd" is a shell's built-in. Such makes
may attempt to exec() "cd" that in turn will fail on systems that
lack the "cd" executable.
Reworked this by eliminating the root cause.
Submitted by: Simon Gerraty <sjg@juniper.net>
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/groff/tmac/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gnu/usr.bin/groff/tmac/Makefile b/gnu/usr.bin/groff/tmac/Makefile index f6e09c7..195d32f 100644 --- a/gnu/usr.bin/groff/tmac/Makefile +++ b/gnu/usr.bin/groff/tmac/Makefile @@ -62,13 +62,12 @@ $f-s: $f .endfor beforeinstall: - cd ${DIST_DIR}; \ + (cd ${DIST_DIR} && \ ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \ - ${NORMALFILES} ${DESTDIR}${TMACDIR} - cd ${.CURDIR}; \ + ${NORMALFILES} ${DESTDIR}${TMACDIR}) + (cd ${.CURDIR} && \ ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \ - koi8-r.tmac hyphen.ru ${DESTDIR}${TMACDIR} - cd ${.OBJDIR}; + koi8-r.tmac hyphen.ru ${DESTDIR}${TMACDIR}) .for f in ${STRIPFILES} ${SPECIALFILES} ${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \ $f-s ${DESTDIR}${TMACDIR}/$f |