cmake-data 674 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #
  3. # emacsen install script for the Debian GNU/Linux cmake package
  4. FLAVOR=$1
  5. PACKAGE=cmake-data
  6. ELDIR=/usr/share/emacs/site-lisp/
  7. ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
  8. ELFILE="cmake-mode.el"
  9. FLAGS="-batch -no-site-file -l path.el -f batch-byte-compile"
  10. if [ ${FLAVOR} != emacs ]; then
  11. echo install/${PACKAGE}: Byte-compiling for ${FLAVOR}
  12. install -m 755 -d ${ELCDIR}
  13. # Source file symlink (emacsen policy 5C)
  14. ln -s "${ELDIR}/${ELFILE}" "${ELCDIR}/${ELFILE}"
  15. # Compile cmake-mode.el
  16. cd ${ELCDIR}
  17. cat << EOF > path.el
  18. (setq load-path (cons "." load-path) byte-compile-warnings nil)
  19. EOF
  20. ${FLAVOR} ${FLAGS} ${ELFILE}
  21. rm -f path.el
  22. fi