~tsarev/percona-server/5.5-processlist_rows_stats-sporadic_fails-fix

« back to all changes in this revision

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

Merge release branch, update version

Create release-5.5.12-20.3 with 5.5.12 changes and release branch from
5.5.11. Update versions to 5.5.12 and 20.3.

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