debian/copyright: use https form of Format URL
[git/debian.git] / debian / git-el.emacsen-remove
blob5d345e1ff84d5ff3a26f7d48c92aabab1be7fce1
1 #!/bin/sh
2 # Clean up after git.emacsen-install. That is:
3 # 1. Remove compiled .elc bytecode from the site-lisp directory.
4 # 2. Remove .el symlinks from the site-lisp directory.
5 set -e
6 FLAVOR=$1
7 el_files="git.el git-blame.el"
8 elc_files="git.elc git-blame.elc"
9 elc_dir=/usr/share/$FLAVOR/site-lisp/git
11 [ "$FLAVOR" != emacs ] || exit 0
12 printf 'remove/git: Handling removal of emacsen flavor %s\n' "$FLAVOR"
13 [ -d "$elc_dir" ] || exit 0
14 (cd "$elc_dir"; rm -f $elc_files $el_files)
15 # Simulate --ignore-fail-on-non-empty (which is a GNU extension).
16 rmdir "$elc_dir" 2>/dev/null || true