source: subversion/applications/rendering/mapnik/debian/openstreetmap-mapnik-stylesheet-data.postinst @ 27615

Revision 27615, 699 bytes checked in by apmon, 2 years ago (diff)

improve debian packaging scripts

Line 
1#!/bin/sh
2# postinst script for openstreetmap-mapnik-data
3#
4# see: dh_installdeb(1)
5
6set -e
7
8case "$1" in
9    configure)
10
11        . /usr/share/debconf/confmodule
12
13            db_get openstreetmap-mapnik-stylesheet-data/dloadcoastlines || true
14            DLOAD_COAST=$RET
15       
16        if [ "x$DLOAD_COAST" = "xtrue" ] ; then
17                /usr/bin/get-coastlines.sh /usr/share/mapnik-osm-data || true
18            fi
19            true
20        ;;
21
22    abort-upgrade|abort-remove|abort-deconfigure)
23    ;;
24
25    *)
26        echo "postinst called with unknown argument \`$1'" >&2
27        exit 1
28    ;;
29esac
30
31
32# dh_installdeb will replace this with shell code automatically
33# generated by other debhelper scripts.
34
35#DEBHELPER#
36
37exit 0
Note: See TracBrowser for help on using the repository browser.