2
# /usr/lib/emacsen-common/packages/install/crypt++el
6
echo install/crypt++el: Handling install of emacsen flavor ${FLAVOR}
8
byte_compile_options="-batch -f batch-byte-compile"
10
el_dir=/usr/share/emacs/site-lisp/
11
elc_dir=/usr/share/${FLAVOR}/site-lisp/
12
el_path_list=`echo ${el_files} | perl -pe "s|^|${el_dir}|o"`
13
elc_path_list=`echo ${el_files} | perl -pe "s|^|${elc_dir}|o"`
14
#etc_dir=/etc/${FLAVOR}/site-start.d/
16
if [ ${FLAVOR} != emacs ]
18
echo install/crypt++el: byte-compiling for ${FLAVOR}
20
# ln -sf ${el_dir}/crypt++-init.el ${etc_dir}/50crypt++.el
22
# Copy the temp .el files
23
cp ${el_path_list} ${elc_dir}
26
# cat <<-EOF >${elc_dir}/load-path-hack.el
27
#(setq load-path (cons nil load-path))
29
(cd ${elc_dir} && ${FLAVOR} ${byte_compile_options} ${elc_path_list} 2>/dev/null)
31
# remove the redundant .el files
32
# presumes that any .el files in the <flavor> dir are trash.
33
# rm ${elc_dir}/load-path-hack.el
34
rm ${elc_dir}/crypt++.el
39
### mode: shell-script