File: postinst

package info (click to toggle)
zsh-beta 4.1.0-dev-4-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 10,064 kB
  • ctags: 6,159
  • sloc: ansic: 73,617; sh: 4,600; makefile: 630; perl: 623; awk: 293; sed: 16
file content (32 lines) | stat: -rw-r--r-- 862 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh -e

case "$1" in
    configure)
	# continue below
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
	exit 0
    ;;

    *)
	echo "postinst called with unknown argument \`$1'" >&2
	exit 0
    ;;
esac

if test -x /usr/bin/update-menus ; then update-menus ; fi

update-alternatives --install /bin/zsh zsh /usr/bin/zsh-beta 15 --slave /usr/bin/zsh zsh-usrbin /usr/bin/zsh-beta

if [ -d /usr/doc -a ! -e /usr/doc/zsh-beta -a -d /usr/share/doc/zsh-beta ]; then
                ln -sf ../share/doc/zsh-beta /usr/doc/zsh-beta
fi

mkdir -m2775 -p /usr/local/share/zsh-beta/site-functions && chown root:staff \
               /usr/local/share/zsh-beta/site-functions || true


/usr/bin/zsh-beta -fc 'setopt extendedglob ; for i in ${(M)fpath:#/usr/share/zsh-beta/$ZSH_VERSION*}; do zcompile -U -M $i.zwc $i/*~*.zwc(^/) ; chmod 644 $i.zwc ; done'

exit 0