Install symlinks to ELisp source files, as per Debian Emacs policy.
Ben Finney
7 years ago
20 | 20 |
Closes: bug#550688. Thanks to A Mennucc for the report.
|
21 | 21 |
* Use the Debian function for adding the package to the Emacs load-path.
|
22 | 22 |
Closes: bug#663407. Thanks to Kevin Ryde for the report.
|
|
23 |
* Install symlinks to ELisp source files, as per Debian Emacs policy.
|
|
24 |
Closes: bug#665397. Thanks to Samuel Bronson for the report.
|
23 | 25 |
|
24 | 26 |
--
|
25 | 27 |
|
25 | 25 |
install -m 755 -d ${ELCDIR}
|
26 | 26 |
cd ${ELDIR}
|
27 | 27 |
FILES=`echo *.el`
|
28 | |
cp ${FILES} ${ELCDIR}
|
29 | 28 |
cd ${ELCDIR}
|
|
29 |
for f in ${FILES} ; do
|
|
30 |
ln -sf ${ELDIR}/$f .
|
|
31 |
done
|
30 | 32 |
|
31 | 33 |
cat << EOF > path.el
|
32 | 34 |
(setq load-path (cons "." load-path) byte-compile-warnings nil)
|
33 | 35 |
EOF
|
34 | 36 |
${FLAVOR} ${FLAGS} ${FILES}
|
35 | |
rm -f *.el path.el
|
|
37 |
rm -f path.el
|
36 | 38 |
|
37 | 39 |
exit 0
|
38 | 40 |
|