2 # /usr/lib/emacsen-common/packages/install/notmuch-emacs
14 echo install/${PACKAGE}: skipping install for unsupported emacsen flavor ${FLAVOR}
18 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
22 elc_dir=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
23 el_dir=/usr/share/emacs/site-lisp/${PACKAGE}
25 byte_compile_options="--quick --directory=${el_dir} -batch -f batch-byte-compile"
27 echo install/${PACKAGE}: byte-compiling for ${FLAVOR}
29 [ -d ${elc_dir} ] || mkdir ${elc_dir}
31 # Create symlinks to the .el files (see section 6E in debian-emacs
32 # polcy). This makes complation easy, and also allows find-function
33 # and find-library to work properly.
34 (cd ${elc_dir} && ln -sf ${el_dir}/*.el .)
39 ${FLAVOR} ${byte_compile_options} *.el > Install.log 2>&1