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

« back to all changes in this revision

Viewing changes to netware/BUILD/compile-linux-tools

  • 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
if test ! -r ./sql/mysqld.cc
 
10
then
 
11
  echo "you must start from the top source directory"
 
12
  exit 1
 
13
fi
 
14
 
 
15
path=`dirname $0`
 
16
 
 
17
# clean
 
18
if test -e "Makefile"; then make -k clean; fi
 
19
 
 
20
# remove files
 
21
rm -f */.deps/*.P
 
22
rm -f */*.linux
 
23
 
 
24
# run autotools
 
25
. $path/compile-AUTOTOOLS
 
26
 
 
27
# configure
 
28
./configure --without-innodb --without-docs
 
29
 
 
30
# build tools only
 
31
make clean
 
32
make
 
33
 
 
34
# Create mysql_version.h which was deleted my previous step
 
35
./config.status include/mysql_version.h
 
36
                                                                                                                             
 
37
(cd dbug; make libdbug.a)
 
38
(cd strings; make libmystrings.a)
 
39
(cd mysys; make libmysys.a)
 
40
(cd storage/heap; make libheap.a)
 
41
(cd vio; make libvio.a)
 
42
(cd regex; make libregex.a)
 
43
(cd storage/myisam; make libmyisam.a)
 
44
(cd storage/myisammrg; make libmyisammrg.a)
 
45
(cd extra; make comp_err)
 
46
(cd libmysql; make conf_to_src)
 
47
(cd libmysql_r; make conf_to_src)
 
48
# so the file will be linked
 
49
(cd sql; make sql_yacc.cc)
 
50
(cd sql; make gen_lex_hash)
 
51
(cd strings; make conf_to_src)
 
52
 
 
53
# so the file will be linked
 
54
(cd sql; make sql_yacc.cc)
 
55
 
 
56
# we need initilizing SQL files.
 
57
(cd netware; make test_db.sql init_db.sql)
 
58
 
 
59
# copying required linux tools
 
60
cp extra/comp_err extra/comp_err.linux
 
61
cp libmysql/conf_to_src libmysql/conf_to_src.linux
 
62
#cp libmysql_r/conf_to_src libmysql_r/conf_to_src.linux
 
63
cp sql/gen_lex_hash sql/gen_lex_hash.linux
 
64
cp strings/conf_to_src strings/conf_to_src.linux
 
65
 
 
66
# Delete mysql_version.h
 
67
rm -f include/mysql_version.h