~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to netware/BUILD/compile-netware-END

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# debug
 
4
#set -x
 
5
 
 
6
# stop on errors
 
7
set -e
 
8
 
 
9
path=`dirname $0`
 
10
 
 
11
# clean
 
12
if test -e "Makefile"; then make -k clean; fi
 
13
 
 
14
# remove files
 
15
rm -f */.deps/*.P
 
16
rm -rf Makefile.in.bk
 
17
 
 
18
# Setup Metrowerks environment
 
19
. $path/mwenv
 
20
 
 
21
# Temporary hack to allow building from source dist
 
22
if [ ! "$USER"=pushbuild ]
 
23
then
 
24
  # Run autotools(use BUILD/autorun.sh)
 
25
  echo "Running autotools again(BUILD/autorun.sh)"
 
26
  . BUILD/autorun.sh
 
27
fi
 
28
 
 
29
# configure
 
30
./configure $base_configs $extra_configs
 
31
 
 
32
# Ensure a clean tree
 
33
make clean
 
34
 
 
35
# Link NetWare specific .def files into their proper locations
 
36
# in the source tree
 
37
( cd netware && make link_sources )
 
38
 
 
39
# Now, do the real build
 
40
make bin-dist
 
41
 
 
42
# mark the build
 
43
for file in *.tar.gz *.zip
 
44
do
 
45
        if (expr "$file" : "mysql-[1-9].*" > /dev/null)
 
46
        then
 
47
                new_file=`echo $file | sed -e "s/mysql-/mysql-$suffix-/"`
 
48
                if test -e "$new_file"; then mv -f $new_file $new_file.old; fi
 
49
                mv $file $new_file
 
50
        fi
 
51
done
 
52