2
# /usr/lib/emacsen-common/packages/install/foo
3
# [ This particular script hasn't been tested, so be careful. ]
8
# Fix compile error with xemacs20 on unset LANG or LANG=C .
11
el_dir=/usr/share/emacs/site-lisp/wl/
12
elc_dir=/usr/share/${FLAVOR}/site-lisp/wl/
14
if [ ${FLAVOR} = xemacs20 ]
16
flags="-batch -q -no-site-file -l ./add-semi-path.el"
18
flags="-batch -q -no-site-file"
21
if [ ${FLAVOR} != emacs ]
23
echo install/wl: Handling install of emacsen flavor ${FLAVOR}
24
echo install/wl: byte-compiling for ${FLAVOR}
27
install -m 755 -d ${elc_dir}
31
cp utils/*.el ${elc_dir}
32
rm -f ${elc_dir}compile.log
33
make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} > ${elc_dir}compile.log 2>&1
34
make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} install >> ${elc_dir}compile.log 2>&1
35
make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} clean >> ${elc_dir}compile.log 2>&1
36
echo "Compilation log for ${FLAVOR} saved to ${elc_dir}compile.log"
40
echo "Ignoring emacsen flavor ${FLAVOR}"