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.
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