fi
### Find where to run Emacs.
-### (We don't accept EMACS=t as an answer, since that probably only means
-### that the shell is running in an Emacs window.)
+### (Accept only absolute file names.)
if [ $update = yes ];
then
unset EMACS_UNIBYTE
then
EMACS=`pwd`/src/emacs
else
- if [ "x$EMACS" = "x" -o "x$EMACS" = "xt" ];
- then
- echo You must specify the EMACS environment variable 2>&1
- exit 1
- fi
+ case $EMACS in
+ /*) ;;
+ *)
+ if [ ! -f "$EMACS" ]; then
+ echo "$0: You must specify the EMACS environment variable " \
+ "to an absolute file name." 2>&1
+ exit 1
+ fi;;
+ esac
fi
fi
echo "Making links to \`mac'"
(cd mac
- ln ChangeLog INSTALL README *.xml *.MPW ../${tempdir}/mac)
+ ln ChangeLog INSTALL README make-package *.xml *.MPW ../${tempdir}/mac)
echo "Making links to \`mac/inc'"
(cd mac/inc
(cd mac/Emacs.app/Contents
ln Info.plist PkgInfo ../../../${tempdir}/mac/Emacs.app/Contents)
+echo "Making links to \`mac/Emacs.app/Contents/Resources'"
+(cd mac/Emacs.app/Contents/Resources
+ ln Emacs.icns ../../../../${tempdir}/mac/Emacs.app/Contents/Resources)
+
echo "Making links to \`mac/Emacs.app/Contents/Resources/English.lproj'"
(cd mac/Emacs.app/Contents/Resources/English.lproj
ln InfoPlist.strings ../../../../../${tempdir}/mac/Emacs.app/Contents/Resources/English.lproj)
echo "Making links to \`man'"
(cd man
ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
+ ln makefile.w32-in ../${tempdir}/man
test -f README && ln README ../${tempdir}/man
test -f Makefile.in && ln Makefile.in ../${tempdir}/man
ln ChangeLog ../${tempdir}/man
ln `ls -1 *.texi` ../${tempdir}/lispref
ln *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/lispref
ln *.txt *.el spellfile tindex.pl ../${tempdir}/lispref
+ ln makefile.w32-in ../${tempdir}/lispref
test -f README && ln README ../${tempdir}/lispref
test -f Makefile.in && ln Makefile.in ../${tempdir}/lispref
ln ChangeLog ../${tempdir}/lispref
echo "Making links to \`lispintro'"
(cd lispintro
ln *.texi *.aux *.cps *.fns *.kys *.vrs *.eps ../${tempdir}/lispintro
+ ln makefile.w32-in ../${tempdir}/lispintro
test -f texinfo.tex && ln texinfo.tex ../${tempdir}/lispintro
test -f README && ln README ../${tempdir}/lispintro
test -f Makefile.in && ln Makefile.in ../${tempdir}/lispintro