diff options
author | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2002-06-14 19:31:00 +0200 |
---|---|---|
committer | Torsten Hilbrich <torsten@hilbrich.net> | 2011-08-27 20:47:38 +0200 |
commit | 5bb6beb42b86a255991f29fc2a4faabe93d1991c (patch) | |
tree | 380094a7d5d071ba9b7f458c6b422e289534bfdb /deb/install.debian | |
parent | fae7850c9c67a2383b2eb1afb5908490099df48a (diff) |
Imported version 1.8.2 from tarball
fixed Makefile
Diffstat (limited to 'deb/install.debian')
-rwxr-xr-x | deb/install.debian | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/deb/install.debian b/deb/install.debian new file mode 100755 index 0000000..ad76efb --- /dev/null +++ b/deb/install.debian @@ -0,0 +1,30 @@ +#!/bin/sh + +PACKAGE=dictionary +FLAVOUR=$1 +ELDIR=/usr/share/emacs/site-lisp/ +ELCDIR=/usr/share/$FLAVOUR/site-lisp/ +EFLAGS="-batch -q -l lpath.el -f batch-byte-compile" +CONFFILE=${ELDIR}/${PACKAGE}-init.el +CONFDIR=/etc/$FLAVOUR/site-start.d/ + +SOURCES="dictionary.el connection.el link.el" + +case "$FLAVOUR" in + emacs) echo "install/$PACKAGE: Ignoring emacs";; + *) echo -n "install/$PACKAGE: Byte-compiling for $FLAVOUR..." + install -m 755 -d $ELCDIR + for i in $SOURCES; do cp $ELDIR/$i $ELCDIR; done + (cd $ELCDIR && \ + echo '(setq load-path (cons "." load-path))' > lpath.el + $FLAVOUR $EFLAGS $SOURCES 2>/dev/null + rm lpath.el ) + cp ${CONFFILE} ${CONFDIR}/50${PACKAGE}.el + cd $ELCDIR + for i in $SOURCES; do rm -f $ELCDIR/*.el; done + echo " done." + ;; +esac + + + |