#!/bin/sh WD=`pwd` # Don't write a wrong path for BD !!!!! if [ -w /my/tmp ] then BD=/my/tmp/BUILD elif [ -n "$TMPDIR" ] then BD=$TMPDIR/BUILD else BD=/tmp/BUILD fi TMP_SCRIPT=$WD/Logs/00-temp-for-do-all-build-steps.$$ # We build on work to_host=`hostname` cc=gcc ccc=gcc EXTRA_CONFIG="--without-perl" #AM_MAKEFLAGS="-j 2" echo "Building on $to_host" rm -rf $BD/* rm -f $WD/binary/* mkdir -p $WD/binary mkdir -p $WD/Logs mkdir -p $BD/Logs cat > $TMP_SCRIPT < $log 2>&1 else time sh $TMP_SCRIPT > $log 2>&1 fi # Create a commercial MySQL distribution (mysqlcom-VER.tar.gz) from # the newly made source distribution cd "$BD" DIST=`ls -t mysql-*.tar.gz | head -1` $BD/Build-tools/mysql-copyright --target=. $DIST # move the binaries to the 'binary' directory mv $BD/mysql*tar.gz $WD/binary mv $BD/NEW-RPMS/* $WD/binary