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`
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