File: postinst

package info (click to toggle)
figlet 2.2.5-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: ansic: 3,611; sh: 184; makefile: 80; lisp: 37
file content (15 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$1" = configure ]; then
 # Remove old alternative if it exists
  update-alternatives --remove figlet /usr/bin/figlet-figlet || true

  # Add alternatives for figlet
  update-alternatives --install /usr/bin/figlet figlet \
        /usr/bin/figlet-utf8 30 --slave /usr/share/man/man6/figlet.6.gz \
	figlet.6.gz /usr/share/man/man6/figlet-utf8.6.gz
fi

#DEBHELPER#