Link cmake-mode.el source file next to compiled one.
Fix as per emacsen policy 5C. Thanks to Kevin Ryde. (Closes: #710570)
This commit is contained in:
parent
22dd7d866e
commit
9ea4ef6d81
2
debian/changelog
vendored
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
|
||||
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 <modax@debian.org> Sun, 03 Nov 2013 12:28:06 +0200
|
||||
|
||||
|
9
debian/cmake-data.emacsen-install
vendored
9
debian/cmake-data.emacsen-install
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user