]> git.notmuchmail.org Git - notmuch/blobdiff - debian/notmuch.emacsen-install
debian: Add changelog entry for the 0.4 release.
[notmuch] / debian / notmuch.emacsen-install
index 67602604b735bfcb213bc4741b1b2c3105565428..98ec12822b230796ac667ca85c548cb271523aaa 100755 (executable)
@@ -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