File: install.in

package info (click to toggle)
mailcrypt 3.5.8-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 928 kB
  • ctags: 422
  • sloc: lisp: 4,439; python: 437; makefile: 208; sh: 170
file content (44 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "variables"
#!/bin/bash -e
#
# elisp install file for Debian <:=$PACKAGE:> package.
# $Id: install.in,v 1.9 2002/09/01 15:08:40 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

FLAVOR=$1

EFLAGS="-batch -q -l lpath.el -f batch-byte-compile"

case "$FLAVOR" in
    (emacs)
	:
    ;;
    (emacs20|emacs21|mule2)
	echo -n "install/<:=$PACKAGE:>: Byte-compiling for $FLAVOR... "
	install -m 755 -d <:=if($_=$lisp)=~s|emacs|\$FLAVOR|:>
	for i in <:=$SOURCES:>
	    do cp <:=$lisp:>/$i <:=if($_=$lisp)=~s|emacs|\$FLAVOR|:>
	done
	cat <<-EOF ><:=if($_=$lisp)=~s|emacs|\$FLAVOR|:>/lpath.el
		(setq load-path (cons nil load-path))
	EOF
	(cd <:=if($_=$lisp)=~s|emacs|\$FLAVOR|:> \
	    && $FLAVOR $EFLAGS <:=$SOURCES:>  2>&1 \
	    | gzip -9qf > <:=$ELCLOG:>.gz)
	rm -f <:=if($_=$lisp)=~s|emacs|\$FLAVOR|:>/*.el
	echo "done."
    ;;
    (*)
	echo "install/<:=$PACKAGE:>: Ignoring emacsen flavor $FLAVOR."
    ;;
esac

exit 0
<:
# local Variables:
# mode: shell-script
# end:
:>//