Initial Commit
[packages] / xemacs-packages / dictionary / debian / install.debian
1 #!/bin/sh
2
3 PACKAGE=dictionary
4 FLAVOUR=$1
5 ELDIR=/usr/share/emacs/site-lisp/
6 ELCDIR=/usr/share/$FLAVOUR/site-lisp/
7 EFLAGS="-batch -q -l lpath.el -f batch-byte-compile"
8 CONFFILE=${ELDIR}/${PACKAGE}-init.el
9 CONFDIR=/etc/$FLAVOUR/site-start.d/
10
11 SOURCES="dictionary.el connection.el link.el"
12
13 case "$FLAVOUR" in
14   emacs) echo "install/$PACKAGE: Ignoring emacs";;
15       *) echo -n "install/$PACKAGE: Byte-compiling for $FLAVOUR..."
16          install -m 755 -d $ELCDIR
17          for i in $SOURCES; do cp $ELDIR/$i $ELCDIR; done
18          (cd $ELCDIR && \
19            echo '(setq load-path (cons "." load-path))' > lpath.el
20            $FLAVOUR $EFLAGS $SOURCES 2>/dev/null
21            rm lpath.el )
22          cp ${CONFFILE} ${CONFDIR}/50${PACKAGE}.el
23          cd $ELCDIR
24          for i in $SOURCES; do rm -f $ELCDIR/*.el; done
25          echo " done."
26          ;;
27 esac
28
29
30