Commit 46f0079a authored by monty@work.mysql.com's avatar monty@work.mysql.com

Fix to build under bitkeeper

parent 66414270
#!/bin/bash #!/bin/bash
WD=`pwd` WD=`pwd`
BD=/my/tmp/BUILD
TMP_SCRIPT=$WD/Logs/00-temp-for-do-all-build-steps.$$ TMP_SCRIPT=$WD/Logs/00-temp-for-do-all-build-steps.$$
# We build on work # We build on work
...@@ -12,12 +13,17 @@ EXTRA_CONFIG="--without-perl" ...@@ -12,12 +13,17 @@ EXTRA_CONFIG="--without-perl"
echo "Building on $to_host" echo "Building on $to_host"
mkdir -p $WD/Logs mkdir -p $WD/Logs
mkdir -p $BD/Logs
cat > $TMP_SCRIPT <<END cat > $TMP_SCRIPT <<END
# Show executed commands # Show executed commands
set -x set -x
# Move to the right place # Move to the right place
cd "$WD" cd "$WD"
# Create a build directory tree
bk export -w $BD
chmod a+x $BD/mit-pthreads/config/configure
cd "$BD"
CC=$cc CXX=$ccc CC=$cc CXX=$ccc
export CC CXX export CC CXX
...@@ -52,7 +58,7 @@ gmake # --jobs=4 does not work. ...@@ -52,7 +58,7 @@ gmake # --jobs=4 does not work.
time gmake distcheck \ time gmake distcheck \
EXTRA_CONF_ARGS="--with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory $EXTRA_CONFIG" EXTRA_CONF_ARGS="--with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory $EXTRA_CONFIG"
$WD/Build-tools/Do-rpm sh $BD/Build-tools/Do-rpm
rm -f $TMP_SCRIPT rm -f $TMP_SCRIPT
END END
...@@ -72,4 +78,4 @@ fi ...@@ -72,4 +78,4 @@ fi
# the newly made source distribution # the newly made source distribution
DIST=`ls -t mysql-*.tar.gz | head -1` DIST=`ls -t mysql-*.tar.gz | head -1`
$WD/Build-tools/mysql-copyright --target=. $DIST sh $BD/Build-tools/mysql-copyright --target=. $DIST
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment