~vlad-lesin/percona-server/pintables

« back to all changes in this revision

Viewing changes to build/build-binary.sh

  • Committer: Ignacio Nin
  • Date: 2011-04-28 22:20:38 UTC
  • mto: (110.2.1 release-5.5.12-20.3)
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: ignacio.nin@percona.com-20110428222038-grqf3ezgja03qds7
Include Maatkit UDFs and HandlerSocket

Include the build commands for the Maatkit UDFs and HandlerSocket.
Update the handlersocket configure script to be compatible with a
POSIX shell since it contains a `source' command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    make $MAKE_JFLAG VERBOSE=1
121
121
    make DESTDIR="$INSTALLDIR" install
122
122
 
 
123
    # Build HandlerSocket
 
124
    (
 
125
        cd "storage/HandlerSocket-Plugin-for-MySQL"
 
126
        ./autogen.sh
 
127
        CXX=${HS_CXX:-g++} ./configure --with-mysql-source="$SOURCEDIR/$PRODUCT" \
 
128
            --with-mysql-bindir="$SOURCEDIR/$PRODUCT/scripts" \
 
129
            --with-mysql-plugindir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \
 
130
            --libdir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \
 
131
            --prefix="/usr/local/$PRODUCT_FULL"
 
132
        make
 
133
        make DESTDIR="$INSTALLDIR" install
 
134
 
 
135
    )
 
136
 
 
137
    # Build UDF
 
138
    (
 
139
        cd "UDF"
 
140
        CXX=${UDF_CXX:-g++} ./configure --includedir="$SOURCEDIR/$PRODUCT/include" \
 
141
            --libdir="/usr/local/$PRODUCT_FULL/mysql/plugin"
 
142
        make
 
143
        make DESTDIR="$INSTALLDIR" install
 
144
 
 
145
    )
 
146
 
123
147
)
124
148
 
125
149
# Package the archive