emacsen-common: install/package and add-on
Rob,
regarding the emacsen policy proposed in emacsen-common: I tested the
sample install script (as in
/usr/doc/emacsen-common/debian-emacs-policy.gz) in a real world
example and had to come up with a few corrections (see below).
Still, being an elisp layman, I ran into the following problem: As I
understand the proposed policy, a package foo should install its files
into site-lisp/foo/. Now in a generic site-start file for that
package (e.g. /etc/emacs/site-start.d/50foo.el), how do I augment my
load-path correctly to take care of the flavor ?
Would something along the lines of this work ?
(setq load-path
(cons
(concat "/usr/share/" (symbol-name flavor) "/site-lisp/foo")
load-path))
work ?
---
/LINUX/usr/local/src/Packages/python/python-1.5/debian/python-mode.install
Wed Mar 4 10:23:14 1998
+++ /LINUX/usr/local/src/Workdir/python/debian/python-mode.install
Thu Mar 5 15:46:33 1998
@@ -10,18 +11,19 @@
el_files="python-mode.el"
el_dir=/usr/share/emacs/site-lisp/python-mode/
elc_dir=/usr/share/${FLAVOR}/site-lisp/python-mode/
-el_path_list=`echo ${el_files} | perl -pe 's|^|${el_dir}|o'`
-elc_path_list=`echo ${el_files} | perl -pe 's|^|${elc_dir}|o'`
+el_path_list=`echo ${el_files} | perl -pe "s|^|${el_dir}|o"`
+elc_path_list=`echo ${el_files} | perl -pe "s|^|${elc_dir}|o"`
if [ ${FLAVOR} != emacs ]
then
echo install/python-mode: byte-compiling for ${FLAVOR}
# Copy the temp .el files
+ test -d ${elc_dir} || mkdir ${elc_dir}
cp ${el_path_list} ${elc_dir}
# Byte compile them
- ${FLAVOR} ${byte_compile_options} ${el_path_list}
+ ${FLAVOR} ${byte_compile_options} ${elc_path_list}
# remove the redundant .el files
# presumes that any .el files in the <flavor> dir are trash.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: