File: install.debian

package info (click to toggle)
dictionary-el 1.10%2Bgit20190107-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 248 kB
  • sloc: lisp: 1,278; makefile: 112; sh: 41
file content (30 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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