~ubuntu-branches/ubuntu/edgy/mailcrypt/edgy

« back to all changes in this revision

Viewing changes to debian/preinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Davide G. M. Salvetti
  • Date: 2005-10-10 17:49:17 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051010174917-9khdzkxutwykslzx
Tags: 3.5.8+CVS.2005.04.29.1-4
control (Standard-Versions): Upgraded to 3.6.2.
(Depends): Modified the dependency on "debconf" to "debconf |
debconf-2.0" in order to allow the transition to cdebconf.
(Closes: #332016)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "variables"
2
 
#!/bin/bash -e
3
 
#
4
 
# preinst configuration file for Debian <:=$PACKAGE:> package.
5
 
# $Id: preinst.in,v 1.5 2002/09/01 15:08:41 salve Exp $
6
 
#
7
 
<:=@COPYRIGHT:>//
8
 
 
9
 
set -o posix
10
 
 
11
 
source <:=$CONFMODULE:>
12
 
db_version 2.0
13
 
 
14
 
case "$1" in
15
 
    (abort-upgrade|install|upgrade)
16
 
    <:# abort-upgrade ${2:newver}
17
 
      # (undo postrm upgrade $2 effects):>//
18
 
    <:# install ${2:oldver}
19
 
      # (of, if there aren't conffiles from $2)
20
 
      # install
21
 
      # (we can add diversion here, for example):>//
22
 
    <:# upgrade ${2:oldver}
23
 
      # (old-prerm upgrade has been called):>//
24
 
        :
25
 
    ;;
26
 
    (*)
27
 
        echo "${0##*/}: Called with unknown argument \`$1'." >&2
28
 
    ;;
29
 
esac
30
 
 
31
 
<:# to be sure debconf moves on:>//
32
 
db_stop
33
 
 
34
 
exit 0
35
 
<:
36
 
# local Variables:
37
 
# mode: shell-script
38
 
# end:
39
 
:>//