File: emacsen-common.install

package info (click to toggle)
emacsen-common 3.0.8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 425; sh: 87; lisp: 72; makefile: 26
file content (18 lines) | stat: -rwxr-xr-x 505 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

flavor="$1"

echo "emacsen-common: Handling install of emacsen flavor $flavor"

rm -f \
   "/usr/share/$flavor/site-lisp/debian-startup.el" \
   "/usr/share/$flavor/site-lisp/debian-startup.elc"

# Create symlinks to the .el files (see section 5E in debian-emacs polcy).
(cd "/usr/share/$flavor/site-lisp"
 ln -s ../../emacsen-common/debian-startup.el .)

"$flavor" --no-init-file --no-site-file -batch -f batch-byte-compile \
          "/usr/share/$flavor/site-lisp/debian-startup.el"