Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2012 06:55:16 +0000 (UTC)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239640 - head/gnu/usr.bin/groff/tmac
Message-ID:  <201208240655.q7O6tG6Y086536@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ru
Date: Fri Aug 24 06:55:16 2012
New Revision: 239640
URL: http://svn.freebsd.org/changeset/base/239640

Log:
  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>

Modified:
  head/gnu/usr.bin/groff/tmac/Makefile

Modified: head/gnu/usr.bin/groff/tmac/Makefile
==============================================================================
--- head/gnu/usr.bin/groff/tmac/Makefile	Fri Aug 24 05:36:37 2012	(r239639)
+++ head/gnu/usr.bin/groff/tmac/Makefile	Fri Aug 24 06:55:16 2012	(r239640)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208240655.q7O6tG6Y086536>