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