File: preinst.in

package info (click to toggle)
statnews 2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 128 kB
  • ctags: 19
  • sloc: perl: 247; makefile: 17
file content (33 lines) | stat: -rw-r--r-- 690 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
33
#include "variables"
#!/bin/bash -e
#
# preinst configuration file for Debian <:=$PACKAGE:> package.
# $Id: preinst.in,v 2.0 2001/03/29 09:54:07 salve Exp $
#
<:=@COPYRIGHT:>//

set -o posix

case "$1" in
    abort-upgrade|install|upgrade)
    <:# abort-upgrade ${2:newver}
      # (undo postrm upgrade $2 effects):>//
    <:# install ${2:oldver}
      # (of, if there aren't conffiles from $2)
      # install
      # (we can add diversion here, for example):>//
    <:# upgrade ${2:oldver}
      # (old-prerm upgrade has been called):>//
	:
    ;;
    *)
	echo "${0##*/}: Called with unknown argument \`$1'." >&2
    ;;
esac

exit 0
<:
# Local Variables:
# mode: shell-script
# End:
:>//