PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/databases/mysql-hosttools/build

http://github.com/OpenELEC/OpenELEC.tv
Shell | 60 lines | 26 code | 14 blank | 20 comment | 1 complexity | c6908f6b24f28d4e76255f9a9ed5e304 MD5 | raw file
 1#!/bin/sh
 2
 3################################################################################
 4#      This file is part of OpenELEC - http://www.openelec.tv
 5#      Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
 6#
 7#  This Program is free software; you can redistribute it and/or modify
 8#  it under the terms of the GNU General Public License as published by
 9#  the Free Software Foundation; either version 2, or (at your option)
10#  any later version.
11#
12#  This Program is distributed in the hope that it will be useful,
13#  but WITHOUT ANY WARRANTY; without even the implied warranty of
14#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15#  GNU General Public License for more details.
16#
17#  You should have received a copy of the GNU General Public License
18#  along with OpenELEC.tv; see the file COPYING.  If not, write to
19#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20#  http://www.gnu.org/copyleft/gpl.html
21################################################################################
22
23. config/options $1
24
25$SCRIPTS/unpack mysql
26
27setup_toolchain host
28
29cd $BUILD/mysql*
30do_autoreconf
31mkdir -p .objdir-host && cd .objdir-host
32../configure --host=$HOST_NAME \
33             --build=$HOST_NAME \
34             --prefix=/usr \
35             --sysconfdir=/etc \
36             --libexecdir=/usr/sbin \
37             --localstatedir=/var/mysql \
38
39make -C include my_config.h
40make -C mysys libmysys.a
41make -C strings libmystrings.a
42
43make -C dbug factorial
44
45cp -PR dbug/factorial $ROOT/$TOOLCHAIN/bin/mysql-factorial
46
47make -C vio libvio.a
48make -C dbug libdbug.a
49make -C regex libregex.a
50make -C sql gen_lex_hash
51
52cp -PR sql/gen_lex_hash $ROOT/$TOOLCHAIN/bin/mysql-gen_lex_hash
53
54make -C scripts comp_sql
55
56cp -PR scripts/comp_sql $ROOT/$TOOLCHAIN/bin/mysql-comp_sql
57
58make -C extra comp_err
59
60cp -PR extra/comp_err $ROOT/$TOOLCHAIN/bin/mysql-comp_err