- mkdir ${COPYDESTS} ; \
- for dir in ${COPYDIR} ; do \
- dest=$$1 ; shift ; \
- [ -d $${dir} ] \
- && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
- && (echo "Copying $${dir}..." ; \
- (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \
- for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
- rm -rf $${subdir}/RCS ; \
- rm -rf $${subdir}/CVS ; \
- rm -f $${subdir}/\#* ; \
- rm -f $${subdir}/*~ ; \
- done) ; \
- done
- thisdir=`pwd`; \
+ mkdir ${COPYDESTS} ; \
+ chmod ugo+rx ${COPYDESTS} ; \
+ for dir in ${COPYDIR} ; do \
+ dest=$$1 ; shift ; \
+ [ -d $${dir} ] \
+ && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
+ && (echo "Copying $${dir} to $${dest}..." ; \
+ (cd $${dir}; tar -cf - . ) \
+ |(cd $${dest};umask 022; tar -xvf - && cat > /dev/null); \
+ for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
+ rm -rf $${subdir}/RCS ; \
+ rm -rf $${subdir}/CVS ; \
+ rm -f $${subdir}/\#* ; \
+ rm -f $${subdir}/.\#* ; \
+ rm -f $${subdir}/*~ ; \
+ rm -f $${subdir}/*.orig ; \
+ rm -f $${subdir}/[mM]akefile* ; \
+ rm -f $${subdir}/ChangeLog* ; \
+ rm -f $${subdir}/dired.todo ; \
+ done) ; \
+ done
+ -rm -f ${lispdir}/subdirs.el
+ $(srcdir)/update-subdirs ${lispdir}
+ -chmod -R a+r ${COPYDESTS}
+ if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
+ then \
+ echo "Copying etc/DOC-* to ${docdir} ..." ; \
+ (cd ./etc; tar -cf - DOC*) \
+ |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null); \
+ (cd $(docdir); chmod a+r DOC*; rm DOC) \
+ else true; fi
+ if [ -r ./lisp ] \
+ && [ -r ./lisp/simple.el ] \
+ && [ x`(cd ./lisp; /bin/pwd)` != x`(cd ${lispdir}; /bin/pwd)` ] \
+ && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \
+ then \
+ echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
+ (cd lisp; tar -cf - *.el *.elc) \
+ |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null); \
+ else true; fi
+ thisdir=`/bin/pwd`; \