summaryrefslogtreecommitdiff
path: root/debian/cscope-el.emacsen-install
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-06-03 14:33:37 +0200
committerTobias Klauser <tklauser@distanz.ch>2010-06-03 15:47:57 +0200
commite789ca2b064191182ad0016d676ff433a60d51a3 (patch)
treef6ae950cafbb3811b85ea51200df8acded669f0f /debian/cscope-el.emacsen-install
parentdd1ba6f530787377b3b13c0c01f426c271bd3225 (diff)
Prepare 15.7a-4HEADmaster
Diffstat (limited to 'debian/cscope-el.emacsen-install')
-rw-r--r--debian/cscope-el.emacsen-install26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/cscope-el.emacsen-install b/debian/cscope-el.emacsen-install
new file mode 100644
index 0000000..07de87b
--- /dev/null
+++ b/debian/cscope-el.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="xcscope.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