~ubuntu-branches/ubuntu/trusty/w3c-sgml-lib/trusty

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Bazaar Package Importer
  • Author(s): Nicholas Bamber
  • Date: 2011-01-30 09:40:28 UTC
  • Revision ID: james.westby@ubuntu.com-20110130094028-pxbnr50z4cge9kb3
Tags: 1.1-3
Changed /etc/sgml and /etc/xml code to avoid conflict with xml-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# preinst script for w3c-sgml-lib
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <new-preinst> `install'
 
10
#        * <new-preinst> `install' <old-version>
 
11
#        * <new-preinst> `upgrade' <old-version>
 
12
#        * <old-preinst> `abort-upgrade' <new-version>
 
13
# for details, see http://www.debian.org/doc/debian-policy/ or
 
14
# the debian-policy package
 
15
 
 
16
 
 
17
case "$1" in
 
18
    install|upgrade)
 
19
 
 
20
        # setup directories used by catalogs
 
21
        mkdir -p /etc/xml
 
22
        mkdir -p /etc/sgml
 
23
 
 
24
    ;;
 
25
 
 
26
    abort-upgrade)
 
27
    ;;
 
28
 
 
29
    *)
 
30
        echo "preinst called with unknown argument \`$1'" >&2
 
31
        exit 1
 
32
    ;;
 
33
esac
 
34
 
 
35
# dh_installdeb will replace this with shell code automatically
 
36
# generated by other debhelper scripts.
 
37
 
 
38
#DEBHELPER#
 
39
 
 
40
exit 0