~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to support-files/MacOSX/preflight.sh

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# preflight - this script will be executed before the MySQL PKG
 
4
# installation will be performed.
 
5
#
 
6
# If this package has been compiled with a prefix ending with "mysql" (e.g.
 
7
# /usr/local/mysql or /opt/mysql), it will rename any previously existing
 
8
# directory with this name before installing the new package (which includes
 
9
# a symlink named "mysql", pointing to the newly installed directory, which
 
10
# is named mysql-<version>)
 
11
#
 
12
 
 
13
PREFIX="@prefix@"
 
14
BASENAME=`basename $PREFIX`
 
15
 
 
16
if [ -d $PREFIX -a ! -L $PREFIX -a $BASENAME = "mysql" ] ; then
 
17
        mv $PREFIX $PREFIX.bak
 
18
fi