f6f85016ec
Among other things, this fixes installation of LEIM (Libraries of Emacs Input Methods), where the `share/emacs/22.1/leim' directory would remain empty. svn path=/nixpkgs/trunk/; revision=10621
129 lines
5.2 KiB
Diff
129 lines
5.2 KiB
Diff
--- emacs-22.1/Makefile.in 2008-02-10 23:56:29.000000000 +0100
|
|
+++ emacs-22.1/Makefile.in 2008-02-10 23:55:55.000000000 +0100
|
|
@@ -420,7 +420,7 @@
|
|
-set ${COPYDESTS} ; \
|
|
unset CDPATH; \
|
|
for dir in ${COPYDIR} ; do \
|
|
- if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
|
|
+ if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \
|
|
rm -rf $$1 ; \
|
|
fi ; \
|
|
shift ; \
|
|
@@ -432,7 +432,7 @@
|
|
for dir in ${COPYDIR} ; do \
|
|
dest=$$1 ; shift ; \
|
|
[ -d $${dir} ] \
|
|
- && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
|
|
+ && [ `(cd $${dir} && pwd)` != `(cd $${dest} && pwd)` ] \
|
|
&& (echo "Copying $${dir} to $${dest}..." ; \
|
|
(cd $${dir}; tar -chf - . ) \
|
|
| (cd $${dest}; umask 022; \
|
|
@@ -472,7 +472,7 @@
|
|
fi
|
|
-chmod a+r $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el
|
|
-unset CDPATH; \
|
|
- if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \
|
|
+ if [ `(cd ./etc; pwd)` != `(cd $(DESTDIR)${docdir}; pwd)` ]; \
|
|
then \
|
|
echo "Copying etc/DOC-* to $(DESTDIR)${docdir} ..." ; \
|
|
(cd ./etc; tar -chf - DOC*) \
|
|
@@ -483,8 +483,8 @@
|
|
-unset CDPATH; \
|
|
if [ -r ./lisp ] \
|
|
&& [ -r ./lisp/simple.el ] \
|
|
- && [ x`(cd ./lisp; /bin/pwd)` != x`(cd $(DESTDIR)${lispdir}; /bin/pwd)` ] \
|
|
- && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \
|
|
+ && [ x`(cd ./lisp; pwd)` != x`(cd $(DESTDIR)${lispdir}; pwd)` ] \
|
|
+ && [ x`(cd ${srcdir}/lisp; pwd)` != x`(cd ./lisp; pwd)` ]; \
|
|
then \
|
|
echo "Copying lisp/*.el and lisp/*.elc to $(DESTDIR)${lispdir} ..." ; \
|
|
(cd lisp; tar -chf - *.el *.elc) \
|
|
@@ -500,8 +500,8 @@
|
|
done) \
|
|
else true; fi
|
|
-unset CDPATH; \
|
|
- thisdir=`/bin/pwd`; \
|
|
- if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
|
|
+ thisdir=`pwd`; \
|
|
+ if [ `(cd ${srcdir}/info && pwd)` != `(cd $(DESTDIR)${infodir} && pwd)` ]; \
|
|
then \
|
|
(cd $(DESTDIR)${infodir}; \
|
|
if [ -f dir ]; then true; \
|
|
@@ -519,8 +519,8 @@
|
|
done); \
|
|
else true; fi
|
|
-unset CDPATH; \
|
|
- thisdir=`/bin/pwd`; \
|
|
- if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
|
|
+ thisdir=`pwd`; \
|
|
+ if [ `(cd ${srcdir}/info && pwd)` != `(cd $(DESTDIR)${infodir} && pwd)` ]; \
|
|
then \
|
|
for elt in $(INFO_FILES); do \
|
|
(cd $${thisdir}; \
|
|
@@ -528,7 +528,7 @@
|
|
done; \
|
|
else true; fi
|
|
-chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} $(DESTDIR)${datadir}/emacs/site-lisp ${COPYDESTS} $(DESTDIR)${infodir}
|
|
- thisdir=`/bin/pwd`; \
|
|
+ thisdir=`pwd`; \
|
|
cd ${srcdir}/etc; \
|
|
for page in emacs emacsclient etags ctags ; do \
|
|
(cd $${thisdir}; \
|
|
@@ -575,8 +575,8 @@
|
|
-unset CDPATH; \
|
|
for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \
|
|
if [ -d $${dir} ]; then \
|
|
- case `(cd $${dir} ; /bin/pwd)` in \
|
|
- `(cd ${srcdir} ; /bin/pwd)`* ) ;; \
|
|
+ case `(cd $${dir} ; pwd)` in \
|
|
+ `(cd ${srcdir} ; pwd)`* ) ;; \
|
|
* ) rm -rf $${dir} ;; \
|
|
esac ; \
|
|
case $${dir} in \
|
|
--- emacs-22.1/leim/Makefile.in 2008-02-10 23:55:31.000000000 +0100
|
|
+++ emacs-22.1/leim/Makefile.in 2008-02-10 23:55:41.000000000 +0100
|
|
@@ -207,7 +207,7 @@
|
|
leim-list.el: ${SUBDIRS} ${TIT-MISC} changed.tit changed.misc ${srcdir}/leim-ext.el
|
|
${RUN-EMACS} -l ${buildlisppath}/international/quail \
|
|
-f batch-byte-compile-if-not-done ${TIT-MISC:.elc=.el}
|
|
- if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
|
|
+ if [ x`(cd ${srcdir} && pwd)` = x`(pwd)` ] ; then \
|
|
${RUN-EMACS} -l ${buildlisppath}/international/quail \
|
|
--eval "(update-leim-list-file \".\")" ; \
|
|
else \
|
|
@@ -220,11 +220,11 @@
|
|
if [ ! -d ${INSTALLDIR} ] ; then \
|
|
${srcdir}/${dot}${dot}/mkinstalldirs ${INSTALLDIR}; \
|
|
else true; fi
|
|
- if [ x`(cd ${INSTALLDIR} && /bin/pwd)` != x`(/bin/pwd)` ] ; then \
|
|
+ if [ x`(cd ${INSTALLDIR} && pwd)` != x`(pwd)` ] ; then \
|
|
rm -rf ${INSTALLDIR}/leim-list.el; \
|
|
rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/ja-dic ; \
|
|
echo "Copying leim files to ${INSTALLDIR} ..." ; \
|
|
- if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
|
|
+ if [ x`(cd ${srcdir} && pwd)` = x`(pwd)` ] ; then \
|
|
tar -chf - leim-list.el quail ja-dic \
|
|
| (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
|
|
else \
|
|
--- emacs-22.1/lib-src/Makefile.in 2008-02-10 23:59:08.000000000 +0100
|
|
+++ emacs-22.1/lib-src/Makefile.in 2008-02-10 23:59:13.000000000 +0100
|
|
@@ -306,7 +306,7 @@
|
|
@echo
|
|
@echo "Installing utilities run internally by Emacs."
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)${archlibdir}
|
|
- if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
|
|
+ if [ `(cd $(DESTDIR)${archlibdir} && pwd)` != `pwd` ]; then \
|
|
for file in ${UTILITIES}; do \
|
|
$(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \
|
|
done ; \
|
|
@@ -321,8 +321,8 @@
|
|
chown ${gameuser} $(DESTDIR)${gamedir}; \
|
|
chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \
|
|
fi
|
|
- if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` \
|
|
- != `(cd ${srcdir} && /bin/pwd)` ]; then \
|
|
+ if [ `(cd $(DESTDIR)${archlibdir} && pwd)` \
|
|
+ != `(cd ${srcdir} && pwd)` ]; then \
|
|
for file in ${SCRIPTS}; do \
|
|
$(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \
|
|
done ; \
|