Jonathan Nieder | c5be962 | 2011-02-22 17:07:01 -0600 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
Anders Kaseorg | 6e2a98f | 2016-08-19 21:55:48 -0400 | [diff] [blame] | 3 | |
| 4 | #DEBHELPER# |
| 5 | |
Jonathan Nieder | c5be962 | 2011-02-22 17:07:01 -0600 | [diff] [blame] | 6 | test "$1" = configure || exit 0 |
| 7 | /usr/lib/emacsen-common/emacs-package-install git |
Jonathan Nieder | d8b6e88 | 2011-02-26 03:57:01 -0600 | [diff] [blame] | 8 | |
Jonathan Nieder | cfea628 | 2011-03-09 17:07:29 -0600 | [diff] [blame] | 9 | # Clean up after 1:1.7.4.1-1 through 1:1.7.4.1-3. |
| 10 | ! test -L /usr/share/git-core/emacs/emacs || |
| 11 | rm -f /usr/share/git-core/emacs/emacs |
| 12 | ! test -L /usr/share/doc/git/contrib/emacs.old || |
| 13 | rm -f /usr/share/doc/git/contrib/emacs.old |
| 14 | |
Jonathan Nieder | d8b6e88 | 2011-02-26 03:57:01 -0600 | [diff] [blame] | 15 | # Replace the old /usr/share/doc/git/contrib/emacs directory |
| 16 | # with a symlink. |
Jonathan Nieder | 16ac8f0 | 2011-03-09 16:52:53 -0600 | [diff] [blame] | 17 | test -z "$2" && |
| 18 | ! test -L /usr/share/doc/git/contrib/emacs && |
Jonathan Nieder | d8b6e88 | 2011-02-26 03:57:01 -0600 | [diff] [blame] | 19 | test -d /usr/share/doc/git/contrib/emacs || exit 0 |
Jonathan Nieder | 16ac8f0 | 2011-03-09 16:52:53 -0600 | [diff] [blame] | 20 | |
Jonathan Nieder | d8b6e88 | 2011-02-26 03:57:01 -0600 | [diff] [blame] | 21 | if ! rmdir /usr/share/doc/git/contrib/emacs; then |
| 22 | echo Moving /usr/share/doc/git/contrib/emacs to emacs.old >&2 |
| 23 | mv -f /usr/share/doc/git/contrib/emacs /usr/share/doc/git/contrib/emacs.old |
| 24 | fi |
| 25 | ln -s ../../../git-core/emacs /usr/share/doc/git/contrib/emacs |