~ubuntu-branches/ubuntu/edgy/gnats/edgy

« back to all changes in this revision

Viewing changes to debian/scripts/upgrade

  • Committer: Bazaar Package Importer
  • Author(s): Chad Walstrom
  • Date: 2005-03-07 17:56:31 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050307175631-agtm10dvjbemuc64
Tags: 4.1.0-0
* New upstream version
* debian/rules: now uses '--with-lispdir' option instead of environment
  variable overloading. Re-enabled optimization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
set -e
4
 
 
5
 
###############################################################################
6
 
#
7
 
# Perform actions needed for upgrade from GNATS 3 to GNATS 4
8
 
#
9
 
 
10
 
if [ "$1" = configure ]; then
11
 
  if dpkg --compare-versions "$2" lt 3.999 \
12
 
     && [ -e $DB_CONFIG_DIR/default ]; then
13
 
    if [ ! -e $DB_CONFIG_DEFAULT_DIR ]; then
14
 
      ln -sf default $DB_CONFIG_DEFAULT_DIR
15
 
    fi
16
 
  else
17
 
    if [ ! -e $DB_CONFIG_DEFAULT_DIR ]; then
18
 
      ln -sf $GNATSADMDIR $DB_CONFIG_DEFAULT_DIR
19
 
    fi
20
 
  fi
21
 
  
22
 
  if dpkg --compare-versions "$2" lt 3.999; then
23
 
    db_input medium gnats/upgrade_3_4 || true
24
 
  fi
25
 
fi