/usr/lib/emacsen-common/packages/install/mmm-mode is in mmm-mode 0.5.4-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh -e
FILES="mmm-auto.el mmm-class.el mmm-cmds.el mmm-compat.el mmm-cweb.el mmm-mason.el mmm-mode.el mmm-noweb.el mmm-region.el mmm-rpm.el mmm-sample.el mmm-univ.el mmm-utils.el mmm-vars.el"
FLAVOR="$1"
echo "install/mmm-mode: Handling install of emacsen flavor ${FLAVOR}"
if [ "${FLAVOR}" != "emacs" ]; then
echo "install/mmm-mode: byte-compiling for ${FLAVOR}"
cd /usr/share/emacs/site-lisp/mmm-mode
mkdir -p /usr/share/${FLAVOR}/site-lisp/mmm-mode
cp $FILES /usr/share/${FLAVOR}/site-lisp/mmm-mode
cd /usr/share/${FLAVOR}/site-lisp/mmm-mode
cat <<EOF > path.el
(setq load-path (cons "." load-path) byte-compile-warnings nil)
EOF
FLAVORTEST=`echo $FLAVOR | cut -c-6`
if [ ${FLAVORTEST} = xemacs ] ; then
SITEFLAG="-no-site-file"
else
SITEFLAG="--no-site-file"
fi
${FLAVOR} -q ${SITEFLAG} -batch -l path.el -f batch-byte-compile $FILES
rm path.el $FILES
fi
exit 0;
|