debian: Don't try compiling emacs bytecode for emacs < 21
authorCarl Worth <cworth@cworth.org>
Tue, 6 Apr 2010 23:44:33 +0000 (16:44 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:30:43 +0000 (18:30 -0700)
It just doesn't work.

debian/notmuch.emacsen-install

index 4982691efe0098d366017424096eddc925088dad..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`