annotate debian/gftp-text.postinst @ 679:f41c33110f8e

2005-1-25 Brian Masney <masneyb@gftp.org> * src/gtk/gtkui.c (gftpui_run_function_callback) - after the needed information is retrieved from the dialog, destroy the dialog before the callback function is called
author masneyb
date Wed, 26 Jan 2005 03:22:05 +0000
parents 398fcbad832b
children 2311d02b07bc
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)
398fcbad832b 2004-2-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 144
diff changeset
8 update-alternatives --install /usr/bin/ftp ftp /usr/bin/gftp-text 100 \
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