X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=debian%2Fnotmuch.emacsen-install;h=98ec12822b230796ac667ca85c548cb271523aaa;hp=67602604b735bfcb213bc4741b1b2c3105565428;hb=ffd274e13584f37faed56582fec9a23e726972af;hpb=e2dd4ac00b9979de34bd517fa57de56260d38755 diff --git a/debian/notmuch.emacsen-install b/debian/notmuch.emacsen-install index 67602604..98ec1282 100755 --- a/debian/notmuch.emacsen-install +++ b/debian/notmuch.emacsen-install @@ -10,6 +10,12 @@ PACKAGE=notmuch if [ ${FLAVOR} = emacs ]; then exit 0; fi +# We know that the notmuch emacs code doesn't work with emacs before emacs23 +if [ ${FLAVOR} = emacs21 ]; then exit 0; fi +if [ ${FLAVOR} = emacs22 ]; then exit 0; fi +if [ ${FLAVOR} = xemacs21 ]; then exit 0; fi +if [ ${FLAVOR} = xemacs22 ]; then exit 0; fi + echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} #FLAVORTEST=`echo $FLAVOR | cut -c-6` @@ -28,12 +34,14 @@ install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} -ln -sf ${ELDIR}/${FILES} ${ELCDIR} +for file in ${FILES}; do + ln -sf ${ELDIR}/${file} . +done cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} -rm -f path.el +rm -f *.el exit 0