~ubuntu-branches/ubuntu/karmic/firebird2.1/karmic

« back to all changes in this revision

Viewing changes to builds/install/arch-specific/hpux/classic/tarmainUninstall.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2008-05-26 23:59:25 UTC
  • Revision ID: james.westby@ubuntu.com-20080526235925-2pnqj6nxpppoeaer
Tags: upstream-2.1.0.17798-0.ds2
ImportĀ upstreamĀ versionĀ 2.1.0.17798-0.ds2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
#  This library is part of the FirebirdSQL project
 
4
#
 
5
#  This library is free software; you can redistribute it and/or
 
6
#  modify it under the terms of the GNU Lesser General Public
 
7
#  License as published by the Free Software Foundation; either
 
8
#  version 2.1 of the License, or (at your option) any later version.
 
9
#  You may obtain a copy of the Licence at
 
10
#  http://www.gnu.org/licences/lgpl.html
 
11
#  
 
12
#  As a special exception this file can also be included in modules
 
13
#  with other source code as long as that source code has been 
 
14
#  released under an Open Source Initiative certificed licence.  
 
15
#  More information about OSI certification can be found at: 
 
16
#  http://www.opensource.org 
 
17
#  
 
18
#  This module is distributed in the hope that it will be useful,
 
19
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
#  GNU Lesser General Public Licence for more details.
 
22
#  
 
23
#  This module was created by members of the firebird development 
 
24
#  team.  All individual contributions remain the Copyright (C) of 
 
25
#  those individuals and all rights are reserved.  Contributors to 
 
26
#  this file are either listed below or can be obtained from a CVS 
 
27
#  history command.
 
28
 
29
#   Created by:  Mark O'Donohue <mark.odonohue@ludwig.edu.au>
 
30
 
31
#   Contributor(s):
 
32
#  
 
33
 
34
#   $Id: tarmainUninstall.sh.in,v 1.2.2.2 2008/01/17 13:14:14 paulbeach Exp $
 
35
 
36
 
 
37
#  Install script for FirebirdSQL database engine
 
38
#  http://www.firebirdsql.org
 
39
 
 
40
InteractiveInstall=1
 
41
export InteractiveInstall
 
42
 
 
43
 
 
44
checkInstallUser
 
45
 
 
46
BuildVersion=@FIREBIRD_VERSION@.@FB_BUILD_NUM@
 
47
PackageVersion=@FIREBIRD_PACKAGE_VERSION@
 
48
CpuType=@CPU_TYPE@
 
49
 
 
50
FBRootDir=@prefix@
 
51
 
 
52
Version="$BuildVersion-$PackageVersion.$CpuType"
 
53
 
 
54
 
 
55
cat <<EOF
 
56
 
 
57
Firebird @FIREBIRD_ARCH_TYPE@ $Version Uninstall program
 
58
 
 
59
Are you sure you want to proceed?
 
60
 
 
61
EOF
 
62
 
 
63
 
 
64
 
 
65
AskQuestion "Press Enter to start uninstall or ^C to abort"
 
66
 
 
67
 
 
68
# Here we are uninstalling from a install tar.gz file
 
69
 
 
70
scriptsDir=$FBRootDir/misc/scripts
 
71
 
 
72
 
 
73
if [ -e $scriptsDir ]
 
74
  then
 
75
    echo "Extracting install data"
 
76
    runAndCheckExit "$scriptsDir/preUninstall.sh"
 
77
    runAndCheckExit "$scriptsDir/postUninstall.sh"
 
78
 
 
79
    # This one is done last since it deletes the script files
 
80
    # as well.
 
81
    runAndCheckExit "$scriptsDir/tarUninstall.sh"
 
82
 
 
83
fi
 
84
 
 
85
echo "Uninstall completed"
 
86