You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
600 B
26 lines
600 B
16 years ago
|
#!/bin/sh
|
||
|
#
|
||
|
# emacsen install script for the Debian GNU/Linux cmake package
|
||
|
|
||
|
FLAVOR=$1
|
||
16 years ago
|
PACKAGE=cmake-data
|
||
16 years ago
|
|
||
|
ELDIR=/usr/share/emacs/site-lisp/
|
||
|
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
|
||
|
ELFILE="cmake-mode.el"
|
||
|
FLAGS="-batch -no-site-file -l path.el -f batch-byte-compile"
|
||
|
|
||
|
if [ ${FLAVOR} != emacs ]; then
|
||
|
echo install/${PACKAGE}: Byte-compiling for ${FLAVOR}
|
||
|
|
||
|
install -m 755 -d ${ELCDIR}
|
||
|
cd ${ELDIR}
|
||
|
cp ${ELFILE} ${ELCDIR}
|
||
|
cd ${ELCDIR}
|
||
|
cat << EOF > path.el
|
||
|
(setq load-path (cons "." load-path) byte-compile-warnings nil)
|
||
|
EOF
|
||
|
${FLAVOR} ${FLAGS} ${ELFILE}
|
||
|
rm -f ${ELFILE} path.el
|
||
|
fi
|