Mercurial > emacs
changeset 3310:2807618b3f72
* Makefile.in (mkdir, clean, mostlyclean, do-install): Use `(cd
foo && pwd)` instead of `(cd foo ; pwd)` to get the canonical name
of a directory; cd might fail, and have pwd print out the current
directory.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 30 May 1993 19:38:49 +0000 |
parents | f00054d40753 |
children | 5d06123fc1df |
files | Makefile.in |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.in Sun May 30 19:26:11 1993 +0000 +++ b/Makefile.in Sun May 30 19:38:49 1993 +0000 @@ -325,7 +325,7 @@ archlibdir=${archlibdir}) -set ${COPYDESTS} ; \ for dir in ${COPYDIR} ; do \ - if [ `(cd $$1 ; pwd)` != `(cd $${dir} ; pwd)` ] ; then \ + if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \ rm -rf $$1 ; \ fi ; \ shift ; \ @@ -335,7 +335,7 @@ for dir in ${COPYDIR} ; do \ dest=$$1 ; shift ; \ [ -d $${dir} ] \ - && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ + && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ && (echo "Copying $${dir}..." ; \ (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ @@ -345,7 +345,7 @@ rm -f $${subdir}/*~ ; \ done) ; \ done - -[ `(cd ${srcdir}/info; /bin/pwd)` != `(cd ${infodir}; /bin/pwd)` ] \ + -[ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ] \ && (cd ${srcdir}/info ; \ if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ ${INSTALL_DATA} dir ${infodir}/dir ; \ @@ -394,7 +394,7 @@ cd src; $(MAKE) clean cd lib-src; $(MAKE) clean cd oldXMenu; $(MAKE) clean - if [ `(cd ${etcdir} ; /bin/pwd)` != `(cd etc; /bin/pwd)` ] ; then \ + if [ `(cd ${etcdir} && /bin/pwd)` != `(cd etc && /bin/pwd)` ] ; then \ cd etc; $(MAKE) clean; \ else true; \ fi