From 04b38c4c173cef3b1b12163f1cf5a9b3cef8cb4a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 23 May 2009 15:13:26 +0200 Subject: Use dh_installemacsen, closes #515164 --- debian/cscope.emacsen-install | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/cscope.emacsen-install (limited to 'debian/cscope.emacsen-install') diff --git a/debian/cscope.emacsen-install b/debian/cscope.emacsen-install new file mode 100644 index 0000000..b3a70d4 --- /dev/null +++ b/debian/cscope.emacsen-install @@ -0,0 +1,26 @@ +#!/bin/sh +# +# emacsen install script for the Debian GNU/Linux cscope package +# based on the emacsen install script of the cmake package + +FLAVOUR=$1 +PACKAGE=cscope + +ELDIR=/usr/share/emacs/site-lisp/ +ELCDIR=/usr/share/$FLAVOUR/site-lisp/$PACKAGE +ELFILE="xscope.el" +FLAGS="-batch -no-site-file -l path.el -f batch-byte-compile" + +if [ $FLAVOUR != emacs ]; then + echo "install/$PACKAGE: Byte-compiling for $FLAVOUR" + + install -m 755 -d $ELCDIR + cd $ELDIR + cp $ELFILE $ELCDIR + cd $ELCDIR + cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF + $FLAVOUR $FLAGS $ELFILE + rm -f $ELFILE path.el +fi -- cgit v1.2.3-54-g00ecf