~ubuntu-branches/ubuntu/karmic/wesnoth-1.8/karmic-backports

« back to all changes in this revision

Viewing changes to debian/wesnoth-all.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Backport
  • Date: 2010-11-01 12:37:12 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101101123712-4x9k931r5bsdjp3z
Tags: 1:1.8.5-1~karmic1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# postinst script for wesnoth-all
 
3
# copyright 2010 by Gerfried Fuchs <rhonda@debian.at>
 
4
# Licenced under WTFPLv2
 
5
 
 
6
set -e
 
7
 
 
8
case "$1" in
 
9
    configure|reconfigure)
 
10
        if dpkg --compare-versions "$2" lt-nl "1:1.8.3-6"; then
 
11
                if rmdir /usr/share/doc/wesnoth-all 2>/dev/null; then
 
12
                        ln -s wesnoth-1.8-data /usr/share/doc/wesnoth-all
 
13
                fi
 
14
        fi
 
15
    ;;
 
16
esac
 
17
 
 
18
#DEBHELPER#