cmake/debian/cmake-data.emacsen-install
Modestas Vainius 9e85fc7746 Split cmake into more packages
cmake-data - common modules and documentation. Architecture independant.
             Move emacsen stuff in here.
cmake - cmake, cpack and ctest and other CLI utilities.
        cmake is necessary for all GUIs.
cmake-curses-gui - CMake Curses GUI.
cmake-qt-gui - CMake Qt4 GUI.

Signed-off-by: Modestas Vainius <modestas@vainius.eu>
2008-10-16 21:07:07 +03:00

26 lines
600 B
Bash

#!/bin/sh
#
# emacsen install script for the Debian GNU/Linux cmake package
FLAVOR=$1
PACKAGE=cmake-data
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