diff --git a/debian/changelog b/debian/changelog index 26172e300..2c93610b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,8 @@ cmake (2.8.12-0r1) UNRELEASED; urgency=low all its dependencies appear to be licence compatible. The main reason for the switch is that OpenSSL variant appear to be less troublesome. (Closes: #716798) + * Follow emacsen policy 5C and link cmake-mode.el source file next to + compiled one. Thanks to Kevin Ryde. (Closes: #710570) -- Modestas Vainius Sun, 03 Nov 2013 12:28:06 +0200 diff --git a/debian/cmake-data.emacsen-install b/debian/cmake-data.emacsen-install index 0b03baa02..e7f0356e2 100644 --- a/debian/cmake-data.emacsen-install +++ b/debian/cmake-data.emacsen-install @@ -14,12 +14,15 @@ if [ ${FLAVOR} != emacs ]; then echo install/${PACKAGE}: Byte-compiling for ${FLAVOR} install -m 755 -d ${ELCDIR} - cd ${ELDIR} - cp ${ELFILE} ${ELCDIR} + + # Source file symlink (emacsen policy 5C) + ln -s "${ELDIR}/${ELFILE}" "${ELCDIR}/${ELFILE}" + + # Compile cmake-mode.el 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 + rm -f path.el fi