mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
1a01f0ff08
netware/mysql.xdc: Change mode to -rw-rw-r-- netware/BUILD/compile-AUTOTOOLS: Turned on error checking in all NetWare build scripts. netware/BUILD/compile-linux-tools: Turned on error checking in all NetWare build scripts. netware/BUILD/compile-netware-END: Turned on error checking in all NetWare build scripts. netware/BUILD/compile-netware-START: Turned on error checking in all NetWare build scripts. netware/BUILD/compile-netware-all: Turned on error checking in all NetWare build scripts. netware/BUILD/compile-netware-debug: Turned on error checking in all NetWare build scripts. netware/BUILD/compile-netware-standard: Turned on error checking in all NetWare build scripts. netware/BUILD/mwasmnlm: Turned on error checking in all NetWare build scripts. netware/BUILD/mwccnlm: Turned on error checking in all NetWare build scripts. netware/BUILD/mwldnlm: Turned on error checking in all NetWare build scripts. netware/BUILD/nwbootstrap: Add target path suffix
46 lines
675 B
Bash
Executable file
46 lines
675 B
Bash
Executable file
#! /bin/sh
|
|
|
|
# debug
|
|
#set -x
|
|
|
|
# stop on errors
|
|
set -e
|
|
|
|
# repository direcotry
|
|
repo_dir=`pwd`
|
|
|
|
# show usage
|
|
show_usage()
|
|
{
|
|
cat << EOF
|
|
|
|
usage: cron-patch
|
|
|
|
EOF
|
|
exit 0;
|
|
}
|
|
|
|
echo "starting build..."
|
|
|
|
# check for bk and repo_dir
|
|
bk help > /dev/null
|
|
repo_dir=`bk root $repo_dir`
|
|
cd $repo_dir
|
|
|
|
# pull latest code
|
|
echo 'y' | bk pull
|
|
|
|
# determine version
|
|
version=`grep -e "AM_INIT_AUTOMAKE(mysql, .*)" < configure.in | sed -e "s/AM_INIT_AUTOMAKE(mysql, \(.*\))/\1/"`
|
|
echo "version: $version"
|
|
|
|
# latest revision
|
|
rev=`bk changes -e -n -d':REV:' | head -1`
|
|
echo "latest revision: $rev"
|
|
|
|
# run bootstrap
|
|
./netware/BUILD/nwbootstrap --revision=$rev --suffix=$rev --build=all
|
|
|
|
echo "done"
|
|
|
|
|