Link cmake-mode.el source file next to compiled one.

Fix as per emacsen policy 5C. Thanks to Kevin Ryde.

(Closes: #710570)
ci/unstable
Modestas Vainius 11 years ago
parent 22dd7d866e
commit 9ea4ef6d81

2
debian/changelog vendored

@ -8,6 +8,8 @@ cmake (2.8.12-0r1) UNRELEASED; urgency=low
all its dependencies appear to be licence compatible. The main reason for all its dependencies appear to be licence compatible. The main reason for
the switch is that OpenSSL variant appear to be less troublesome. the switch is that OpenSSL variant appear to be less troublesome.
(Closes: #716798) (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 <modax@debian.org> Sun, 03 Nov 2013 12:28:06 +0200 -- Modestas Vainius <modax@debian.org> Sun, 03 Nov 2013 12:28:06 +0200

@ -14,12 +14,15 @@ if [ ${FLAVOR} != emacs ]; then
echo install/${PACKAGE}: Byte-compiling for ${FLAVOR} echo install/${PACKAGE}: Byte-compiling for ${FLAVOR}
install -m 755 -d ${ELCDIR} 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} cd ${ELCDIR}
cat << EOF > path.el cat << EOF > path.el
(setq load-path (cons "." load-path) byte-compile-warnings nil) (setq load-path (cons "." load-path) byte-compile-warnings nil)
EOF EOF
${FLAVOR} ${FLAGS} ${ELFILE} ${FLAVOR} ${FLAGS} ${ELFILE}
rm -f ${ELFILE} path.el rm -f path.el
fi fi

Loading…
Cancel
Save