~ubuntu-branches/ubuntu/vivid/dejagnu/vivid

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2004-02-09 15:07:58 UTC
  • Revision ID: james.westby@ubuntu.com-20040209150758-9tpwlp0ebis3kvzx
Tags: 1.4.4-1
* New upstream release.
* Terrible hacks to not delete files (HTML docs mostly) we can't rebuild.
  This is being fixed in CVS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
#
 
3
# Debian package preinst
 
4
 
 
5
case "$1" in
 
6
  install|upgrade)
 
7
                   # need to move configuration file to proper directory
 
8
                   if [ -f /var/lib/dejagnu/site.exp ]; then
 
9
                     if [ ! -d /etc/dejagnu ]; then
 
10
                       install -d -g root -m 755 -o root /etc/dejagnu
 
11
                     fi
 
12
                     mv -f /var/lib/dejagnu/site.exp /etc/dejagnu
 
13
                   fi
 
14
                   ;;
 
15
esac