X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=debian%2Fnotmuch.emacsen-install;h=98ec12822b230796ac667ca85c548cb271523aaa;hb=362ab047c264ae67ec3de041aec637979077db21;hp=67602604b735bfcb213bc4741b1b2c3105565428;hpb=4edf37a1d5067197741b8dcb0bdb72ce4c299c05;p=notmuch 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