Skip to content

Commit 80a3c64

Browse files
author
greg@mysql.com
committed
Minor changes in netware directory (From Rob Lyon - Novell)
1 parent a4281f5 commit 80a3c64

13 files changed

+108
-4
lines changed

netware/BUILD/compile-AUTOTOOLS

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#! /bin/sh
22

3+
# debug
4+
#set -x
5+
6+
# stop on errors
7+
set -e
8+
39
for package in . ./innobase
410
do
511
(cd $package

netware/BUILD/compile-linux-tools

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#! /bin/sh
22

3-
#debug
3+
# debug
44
#set -x
55

6+
# stop on errors
7+
set -e
8+
69
if test ! -r ./sql/mysqld.cc
710
then
811
echo "you must start from the top source directory"

netware/BUILD/compile-netware-END

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#! /bin/sh
22

3+
# debug
4+
#set -x
5+
6+
# stop on errors
7+
set -e
8+
39
path=`dirname $0`
410

511
# clean

netware/BUILD/compile-netware-START

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#! /bin/sh
22

3-
#debug
3+
# debug
44
#set -x
55

6+
# stop on errors
7+
set -e
8+
69
if test ! -r ./sql/mysqld.cc
710
then
811
echo "you must start from the top source directory"

netware/BUILD/compile-netware-all

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#! /bin/sh
22

3+
# debug
4+
#set -x
5+
6+
# stop on errors
7+
set -e
8+
39
path=`dirname $0`
410

511
$path/compile-netware-standard

netware/BUILD/compile-netware-debug

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#! /bin/sh
22

3+
# debug
4+
#set -x
5+
6+
# stop on errors
7+
set -e
8+
39
path=`dirname $0`
410
. $path/compile-netware-START
511

netware/BUILD/compile-netware-standard

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#! /bin/sh
22

3+
# debug
4+
#set -x
5+
6+
# stop on errors
7+
set -e
8+
9+
310
path=`dirname $0`
411
. $path/compile-netware-START
512

netware/BUILD/cron-build

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#! /bin/sh
2+
3+
# debug
4+
#set -x
5+
6+
# stop on errors
7+
set -e
8+
9+
# repository direcotry
10+
repo_dir=`pwd`
11+
12+
# show usage
13+
show_usage()
14+
{
15+
cat << EOF
16+
17+
usage: cron-patch
18+
19+
EOF
20+
exit 0;
21+
}
22+
23+
echo "starting build..."
24+
25+
# check for bk and repo_dir
26+
bk help > /dev/null
27+
repo_dir=`bk root $repo_dir`
28+
cd $repo_dir
29+
30+
# pull latest code
31+
echo 'y' | bk pull
32+
33+
# determine version
34+
version=`grep -e "AM_INIT_AUTOMAKE(mysql, .*)" < configure.in | sed -e "s/AM_INIT_AUTOMAKE(mysql, \(.*\))/\1/"`
35+
echo "version: $version"
36+
37+
# latest revision
38+
rev=`bk changes -e -n -d':REV:' | head -1`
39+
echo "latest revision: $rev"
40+
41+
# run bootstrap
42+
./netware/BUILD/nwbootstrap --revision=$rev --suffix=$rev --build=all
43+
44+
echo "done"
45+
46+

netware/BUILD/crontab

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
00 23 * * * (export PATH='/usr/local/bin:/usr/bin:/bin'; export DISPLAY=':0'; cd ~/bk/mysqldoc; echo 'y' | bk pull)
2+
00 00 * * * (export PATH='/usr/local/bin:/usr/bin:/bin'; export DISPLAY=':0'; cd ~/bk/mysql-4.0; ./netware/BUILD/cron-build)
3+
00 04 * * * (export PATH='/usr/local/bin:/usr/bin:/bin'; export DISPLAY=':0'; cd ~/bk/mysql-4.1; ./netware/BUILD/cron-build)
4+

netware/BUILD/mwasmnlm

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#! /bin/sh
22

3+
# stop on errors
4+
set -e
5+
36
args=" $*"
47

58
wine --debugmsg -all -- mwasmnlm $args

netware/BUILD/mwccnlm

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#! /bin/sh
22

3+
# stop on errors
4+
set -e
5+
36
# mwccnlm is having a hard time understanding "-I./../include"
47
# convert it to "-I../include"
58
args=" "`echo $* | sed -e 's/-I.\/../-I../g'`

netware/BUILD/mwldnlm

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#! /bin/sh
22

3+
# stop on errors
4+
set -e
5+
36
args=" $*"
47

58
wine --debugmsg -all -- mwldnlm $args

netware/BUILD/nwbootstrap

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# debug
44
#set -x
55

6-
path=`dirname $0`
7-
86
# stop on errors
97
set -e
108

9+
path=`dirname $0`
10+
1111
# repository direcotry
1212
repo_dir=`pwd`
1313

@@ -24,6 +24,7 @@ temp_dir=""
2424
revision=""
2525
rev=""
2626
build=""
27+
suffix=""
2728
mwenv=""
2829

2930
# show usage
@@ -81,6 +82,7 @@ for arg do
8182
--wine-build-dir=*) wine_build_dir=`echo "$arg" | sed -e "s;--wine-build-dir=;;"` ;;
8283
--revision=*) revision=`echo "$arg" | sed -e "s;--revision=;;"` ;;
8384
--build=*) build=`echo "$arg" | sed -e "s;--build=;;"` ;;
85+
--suffix=*) suffix=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
8486
--doc-dir=*) doc_dir=`echo "$arg" | sed -e "s;--doc-dir=;;"` ;;
8587
*) show_usage ;;
8688
esac
@@ -111,6 +113,12 @@ echo "version: $version"
111113
# build target directory
112114
target_dir="$build_dir/mysql-$version"
113115

116+
# add suffix
117+
if test $suffix
118+
then
119+
target_dir="$target_dir-$suffix"
120+
fi
121+
114122
# delete any old target
115123
if test -d $target_dir.old; then rm -rf $target_dir.old; fi
116124

0 commit comments

Comments
 (0)