~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to debian/moinmoin-common.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
 
5
rename_conffile_commit () {
 
6
  # syntax: rename_conffile_commit filename
 
7
  #
 
8
  # Complete the renaming of a conffile "filename" that has been renamed.
 
9
  #
 
10
  # Call this function from a postinst script after having used
 
11
  # rename_conffile_prepare() in the preinst.
 
12
 
 
13
  #local conffile
 
14
 
 
15
  # validate arguments
 
16
    if [ $# -ne 1 ]; then
 
17
        echo "$0: usage error: rename_conffile_commit() called with wrong"
 
18
             "number of arguments; expected 1, got $#" >&2
 
19
        exit 2
 
20
    fi
 
21
 
 
22
    _conffile="$1"
 
23
 
 
24
    # If the temporary file created by rename_conffile_prepare() exists, remove
 
25
    # it.
 
26
    if [ -e "$_conffile.moinmoin-common.moved" ]; then
 
27
        rm "$_conffile.moinmoin-common.moved"
 
28
    fi
 
29
}
 
30
 
5
31
#DEBHELPER#
6
32
 
7
33
# Remove byte-compiled configfile generated by dh_python
8
34
find /usr/share/moin/server -name *.pyc -o -name *.pyo | xargs -r rm -f
 
35
 
 
36
rename_conffile_commit /etc/moin/moinmaster.py
 
37
 
 
38
# vim:set ai et sts=4 sw=4 tw=80: