~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to HandlerSocket-Plugin-for-MySQL/regtest/common/compat.sh

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ "`uname -o`" = "Cygwin" ]; then
 
4
  export DIFF='diff --ignore-space --strip-trailing-cr'
 
5
elif [ "`uname`" = "Darwin" ]; then
 
6
  export DIFF='diff'
 
7
else
 
8
  export DIFF='diff --ignore-space --strip-trailing-cr'
 
9
fi
 
10
 
 
11
compile_c() {
 
12
  if [ "`uname -o`" = "Cygwin" ]; then
 
13
    cl /W3 /I../.. /EHsc /FD /MD "$1" /link /DLL "/OUT:$2.dll" \
 
14
      ../../libase.lib 2> cl.log
 
15
  else
 
16
    $CXX -I../.. -O3 -g -Wall -fPIC -shared "$1" -o "$2.so"
 
17
  fi
 
18
}
 
19
 
 
20
compile_j() {
 
21
  if [ "`uname -o`" = "Cygwin" ]; then
 
22
    jdk="`echo /cygdrive/c/Program\ Files/Java/jdk* | head -1`"
 
23
  else
 
24
    jdk="$SUNJDK"
 
25
  fi
 
26
  "$jdk/bin/javac" -g "$1"/*.java
 
27
  "$jdk/bin/jar" -cf "$1.jar" "$1"/*.class
 
28
}
 
29