summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorunknown <greg@mysql.com>2003-04-24 18:15:52 -0400
committerunknown <greg@mysql.com>2003-04-24 18:15:52 -0400
commit1a01f0ff08b2e22602605d59e009d19500f9fb75 (patch)
tree8a70b2e0f7dfd758ab6a6db9f239bcc44aa9870d /netware
parentaaa3e8271321437eff98cfab2861516f25acc80a (diff)
downloadmariadb-git-1a01f0ff08b2e22602605d59e009d19500f9fb75.tar.gz
Minor changes in netware directory (From Rob Lyon - Novell)
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
Diffstat (limited to 'netware')
-rwxr-xr-xnetware/BUILD/compile-AUTOTOOLS6
-rwxr-xr-xnetware/BUILD/compile-linux-tools5
-rwxr-xr-xnetware/BUILD/compile-netware-END6
-rwxr-xr-xnetware/BUILD/compile-netware-START5
-rwxr-xr-xnetware/BUILD/compile-netware-all6
-rwxr-xr-xnetware/BUILD/compile-netware-debug6
-rwxr-xr-xnetware/BUILD/compile-netware-standard7
-rwxr-xr-xnetware/BUILD/cron-build46
-rwxr-xr-xnetware/BUILD/crontab4
-rwxr-xr-xnetware/BUILD/mwasmnlm3
-rwxr-xr-xnetware/BUILD/mwccnlm3
-rwxr-xr-xnetware/BUILD/mwldnlm3
-rwxr-xr-xnetware/BUILD/nwbootstrap12
13 files changed, 108 insertions, 4 deletions
diff --git a/netware/BUILD/compile-AUTOTOOLS b/netware/BUILD/compile-AUTOTOOLS
index 0688ea5aaca..57213b1b3d0 100755
--- a/netware/BUILD/compile-AUTOTOOLS
+++ b/netware/BUILD/compile-AUTOTOOLS
@@ -1,5 +1,11 @@
#! /bin/sh
+# debug
+#set -x
+
+# stop on errors
+set -e
+
for package in . ./innobase
do
(cd $package
diff --git a/netware/BUILD/compile-linux-tools b/netware/BUILD/compile-linux-tools
index 598be96ab66..3590a900338 100755
--- a/netware/BUILD/compile-linux-tools
+++ b/netware/BUILD/compile-linux-tools
@@ -1,8 +1,11 @@
#! /bin/sh
-#debug
+# debug
#set -x
+# stop on errors
+set -e
+
if test ! -r ./sql/mysqld.cc
then
echo "you must start from the top source directory"
diff --git a/netware/BUILD/compile-netware-END b/netware/BUILD/compile-netware-END
index beb15fbeda3..e0097484500 100755
--- a/netware/BUILD/compile-netware-END
+++ b/netware/BUILD/compile-netware-END
@@ -1,5 +1,11 @@
#! /bin/sh
+# debug
+#set -x
+
+# stop on errors
+set -e
+
path=`dirname $0`
# clean
diff --git a/netware/BUILD/compile-netware-START b/netware/BUILD/compile-netware-START
index 2941d8868e4..7eef192a907 100755
--- a/netware/BUILD/compile-netware-START
+++ b/netware/BUILD/compile-netware-START
@@ -1,8 +1,11 @@
#! /bin/sh
-#debug
+# debug
#set -x
+# stop on errors
+set -e
+
if test ! -r ./sql/mysqld.cc
then
echo "you must start from the top source directory"
diff --git a/netware/BUILD/compile-netware-all b/netware/BUILD/compile-netware-all
index f8dea0f7583..35d275f3b42 100755
--- a/netware/BUILD/compile-netware-all
+++ b/netware/BUILD/compile-netware-all
@@ -1,5 +1,11 @@
#! /bin/sh
+# debug
+#set -x
+
+# stop on errors
+set -e
+
path=`dirname $0`
$path/compile-netware-standard
diff --git a/netware/BUILD/compile-netware-debug b/netware/BUILD/compile-netware-debug
index 2cd292c82fd..e44d64e3074 100755
--- a/netware/BUILD/compile-netware-debug
+++ b/netware/BUILD/compile-netware-debug
@@ -1,5 +1,11 @@
#! /bin/sh
+# debug
+#set -x
+
+# stop on errors
+set -e
+
path=`dirname $0`
. $path/compile-netware-START
diff --git a/netware/BUILD/compile-netware-standard b/netware/BUILD/compile-netware-standard
index c09337b5fe0..12cae1f024e 100755
--- a/netware/BUILD/compile-netware-standard
+++ b/netware/BUILD/compile-netware-standard
@@ -1,5 +1,12 @@
#! /bin/sh
+# debug
+#set -x
+
+# stop on errors
+set -e
+
+
path=`dirname $0`
. $path/compile-netware-START
diff --git a/netware/BUILD/cron-build b/netware/BUILD/cron-build
new file mode 100755
index 00000000000..26ccde28e2a
--- /dev/null
+++ b/netware/BUILD/cron-build
@@ -0,0 +1,46 @@
+#! /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"
+
+
diff --git a/netware/BUILD/crontab b/netware/BUILD/crontab
new file mode 100755
index 00000000000..0097f8acaaf
--- /dev/null
+++ b/netware/BUILD/crontab
@@ -0,0 +1,4 @@
+00 23 * * * (export PATH='/usr/local/bin:/usr/bin:/bin'; export DISPLAY=':0'; cd ~/bk/mysqldoc; echo 'y' | bk pull)
+00 00 * * * (export PATH='/usr/local/bin:/usr/bin:/bin'; export DISPLAY=':0'; cd ~/bk/mysql-4.0; ./netware/BUILD/cron-build)
+00 04 * * * (export PATH='/usr/local/bin:/usr/bin:/bin'; export DISPLAY=':0'; cd ~/bk/mysql-4.1; ./netware/BUILD/cron-build)
+
diff --git a/netware/BUILD/mwasmnlm b/netware/BUILD/mwasmnlm
index c3501112aa5..381f84ec0c8 100755
--- a/netware/BUILD/mwasmnlm
+++ b/netware/BUILD/mwasmnlm
@@ -1,5 +1,8 @@
#! /bin/sh
+# stop on errors
+set -e
+
args=" $*"
wine --debugmsg -all -- mwasmnlm $args
diff --git a/netware/BUILD/mwccnlm b/netware/BUILD/mwccnlm
index 9e989485bd9..cb2d62fe8cf 100755
--- a/netware/BUILD/mwccnlm
+++ b/netware/BUILD/mwccnlm
@@ -1,5 +1,8 @@
#! /bin/sh
+# stop on errors
+set -e
+
# mwccnlm is having a hard time understanding "-I./../include"
# convert it to "-I../include"
args=" "`echo $* | sed -e 's/-I.\/../-I../g'`
diff --git a/netware/BUILD/mwldnlm b/netware/BUILD/mwldnlm
index 7ad2872ccbb..28566fc5cb1 100755
--- a/netware/BUILD/mwldnlm
+++ b/netware/BUILD/mwldnlm
@@ -1,5 +1,8 @@
#! /bin/sh
+# stop on errors
+set -e
+
args=" $*"
wine --debugmsg -all -- mwldnlm $args
diff --git a/netware/BUILD/nwbootstrap b/netware/BUILD/nwbootstrap
index 002e19c8e49..5d068e4e4de 100755
--- a/netware/BUILD/nwbootstrap
+++ b/netware/BUILD/nwbootstrap
@@ -3,11 +3,11 @@
# debug
#set -x
-path=`dirname $0`
-
# stop on errors
set -e
+path=`dirname $0`
+
# repository direcotry
repo_dir=`pwd`
@@ -24,6 +24,7 @@ temp_dir=""
revision=""
rev=""
build=""
+suffix=""
mwenv=""
# show usage
@@ -81,6 +82,7 @@ for arg do
--wine-build-dir=*) wine_build_dir=`echo "$arg" | sed -e "s;--wine-build-dir=;;"` ;;
--revision=*) revision=`echo "$arg" | sed -e "s;--revision=;;"` ;;
--build=*) build=`echo "$arg" | sed -e "s;--build=;;"` ;;
+ --suffix=*) suffix=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
--doc-dir=*) doc_dir=`echo "$arg" | sed -e "s;--doc-dir=;;"` ;;
*) show_usage ;;
esac
@@ -111,6 +113,12 @@ echo "version: $version"
# build target directory
target_dir="$build_dir/mysql-$version"
+# add suffix
+if test $suffix
+then
+ target_dir="$target_dir-$suffix"
+fi
+
# delete any old target
if test -d $target_dir.old; then rm -rf $target_dir.old; fi