diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:49:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:49:37 +0000 |
commit | 43fb36463ac1df398f62397b36e570aa9af94d91 (patch) | |
tree | a69979c10da617a3df2d55ecde5503f1c0ec1126 /debian/git-el.emacsen-install | |
parent | Adding upstream version 1:2.30.2. (diff) | |
download | git-debian.tar.xz git-debian.zip |
Adding debian version 1:2.30.2-1+deb11u2.debian/1%2.30.2-1+deb11u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/git-el.emacsen-install')
-rwxr-xr-x | debian/git-el.emacsen-install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/git-el.emacsen-install b/debian/git-el.emacsen-install new file mode 100755 index 0000000..4b02513 --- /dev/null +++ b/debian/git-el.emacsen-install @@ -0,0 +1,27 @@ +#!/bin/sh +# Based on /usr/share/doc/emacsen-common/sample-package-install-foo.gz. +# +# Unlike the example, we place symlinks to the elisp source alongside +# the compiled bytecode, so the .el source is available to the various +# Emacs help tools. Putting .el and .elc files in the same directory +# keeps "list-load-path-shadows" happy. + +set -e +FLAVOR=$1 +el_files="git.el git-blame.el" +el_dir=/usr/share/git-core/emacs +elc_dir=/usr/share/$FLAVOR/site-lisp/git + +printf 'install/git: Handling install of emacsen flavor %s\n' "$FLAVOR" +[ -d "$elc_dir" ] || mkdir "$elc_dir" +( + cd $elc_dir + for i in $el_files + do + ln -sf $el_dir/$i $i + done + + printf 'install/git: Byte-compiling for %s\n' "$FLAVOR" + set -x + $FLAVOR -batch -q -no-site-file -f batch-byte-compile $el_files +) |