annotate debian/gftp-text.postinst @ 973:2311d02b07bc

2008-11-30 Brian Masney <masneyb@gftp.org> * debian/* - updated new package files from Debian
author masneyb
date Sun, 30 Nov 2008 21:26:51 +0000
parents 398fcbad832b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
144
f7251c70153a This file was missing from my last commit
masneyb
parents:
diff changeset
1 #!/bin/sh
400
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
2 # postinst script for gftp-text
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
3
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
4 set -e
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
5
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
6 case "$1" in
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
7 configure|abort-upgrade)
973
2311d02b07bc 2008-11-30 Brian Masney <masneyb@gftp.org>
masneyb
parents: 400
diff changeset
8 update-alternatives --install /usr/bin/ftp ftp /usr/bin/gftp-text 90 \
400
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
9 --slave /usr/share/man/man1/ftp.1.gz ftp.1.gz /usr/share/man/man1/gftp.1.gz
144
f7251c70153a This file was missing from my last commit
masneyb
parents:
diff changeset
10
400
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
11 ;;
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
12 abort-remove|abort-deconfigure)
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
13 ;;
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
14 *)
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
15 echo "postinst called with unknown argument \`$1'" >&2
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
16 exit 1
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
17 ;;
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
18 esac
144
f7251c70153a This file was missing from my last commit
masneyb
parents:
diff changeset
19
400
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
20
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
21 # dh_installdeb will replace this with shell code automatically
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
22 # generated by other debhelper scripts.
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
23
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
24 #DEBHELPER#
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
25
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
26 exit 0
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
27