summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@mysql.com <>2003-02-18 17:48:04 -0500
committergreg@mysql.com <>2003-02-18 17:48:04 -0500
commitb080118808d45f0213dd5f09410094c5cc164dd9 (patch)
tree041ae3cf2d7d973ee82bb837e7a090296e5cd6b1
parent6051b2f9988f1e317be41e49c64718cc610c1260 (diff)
downloadmariadb-git-b080118808d45f0213dd5f09410094c5cc164dd9.tar.gz
mwldnlm, mwenv, mwccnlm, mwasmnlm, nwconfigure, nwbootstrap:
new file
-rw-r--r--BitKeeper/etc/logging_ok1
-rw-r--r--netware/mw/mwasmnlm5
-rw-r--r--netware/mw/mwccnlm7
-rw-r--r--netware/mw/mwenv12
-rw-r--r--netware/mw/mwldnlm5
-rw-r--r--netware/nwbootstrap145
-rw-r--r--netware/nwconfigure23
7 files changed, 198 insertions, 0 deletions
diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok
index df830cbe6cb..370f1a1eb8d 100644
--- a/BitKeeper/etc/logging_ok
+++ b/BitKeeper/etc/logging_ok
@@ -15,6 +15,7 @@ bell@sanja.is.com.ua
bk@admin.bk
davida@isil.mysql.com
gluh@gluh.(none)
+greg@mysql.com
gweir@work.mysql.com
heikki@donna.mysql.fi
heikki@hundin.mysql.fi
diff --git a/netware/mw/mwasmnlm b/netware/mw/mwasmnlm
new file mode 100644
index 00000000000..c3501112aa5
--- /dev/null
+++ b/netware/mw/mwasmnlm
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+args=" $*"
+
+wine --debugmsg -all -- mwasmnlm $args
diff --git a/netware/mw/mwccnlm b/netware/mw/mwccnlm
new file mode 100644
index 00000000000..9e989485bd9
--- /dev/null
+++ b/netware/mw/mwccnlm
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+# mwccnlm is having a hard time understanding "-I./../include"
+# convert it to "-I../include"
+args=" "`echo $* | sed -e 's/-I.\/../-I../g'`
+
+wine --debugmsg -all -- mwccnlm $args
diff --git a/netware/mw/mwenv b/netware/mw/mwenv
new file mode 100644
index 00000000000..b82dbdc0c7f
--- /dev/null
+++ b/netware/mw/mwenv
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+export MYDEV="F:/mysql"
+
+export MWCNWx86Includes="$MYDEV/libc/include"
+export MWNWx86Libraries="$MYDEV/libc/imports;$MYDEV/mw/lib"
+export MWNWx86LibraryFiles="libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib"
+
+export WINEPATH="$MYDEV/mw/bin"
+
+export PATH="$PATH:$HOME/mysql/mysql-4.0/netware/mw"
+
diff --git a/netware/mw/mwldnlm b/netware/mw/mwldnlm
new file mode 100644
index 00000000000..7ad2872ccbb
--- /dev/null
+++ b/netware/mw/mwldnlm
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+args=" $*"
+
+wine --debugmsg -all -- mwldnlm $args
diff --git a/netware/nwbootstrap b/netware/nwbootstrap
new file mode 100644
index 00000000000..3e4b03de0f5
--- /dev/null
+++ b/netware/nwbootstrap
@@ -0,0 +1,145 @@
+#! /bin/sh
+
+# show executed commands
+# set -x
+
+# stop on errors
+set -e
+
+BD=`pwd`
+
+build=0
+build_debug=0
+skip_linux=0
+
+# parse arguments
+for arg do
+ case "$arg" in
+ --build) build=1 ;;
+ --build-debug) build_debug=1 ;;
+ --skip-linux) skip_linux=1 ;;
+ *) echo "$0: unrecognized option: $arg" ;;
+ esac
+done
+
+# run the auto tools
+autotools()
+{
+ for package in $BD $BD/innobase
+ do
+ echo "cd $package"
+ cd $package
+ rm -f config.cache
+ echo "aclocal"
+ aclocal
+ echo "autoheader"
+ autoheader
+ echo "libtoolize --force"
+ libtoolize --force
+ echo "aclocal"
+ aclocal
+ echo "automake --add-missing --force-missing"
+ automake --add-missing --force-missing
+ echo "autoconf"
+ autoconf
+ done
+
+ cd $BD
+}
+
+# check the source direcotry
+echo "looking for \"$BD/sql/mysqld.cc\"..."
+if test ! -r ./sql/mysqld.cc
+then
+ echo "./netware/nwbootstrap must be started from the top source directory"
+ exit 1
+fi
+
+# clean
+# make -j 2 -k distclean
+rm -f NEW-RPMS/*
+rm -f */.deps/*.P
+
+# make files writeable
+chmod -R u+rw,g+rw .
+
+# skip linux?
+if test $skip_linux -ne 1
+then
+ echo "starting linux build..."
+
+ echo "autotools..."
+ autotools
+
+ echo "configuring for linux..."
+ ./configure --without-docs --without-innodb
+
+ echo "building for linux..."
+ make clean all
+
+ echo "copying required linux binaries..."
+ rm -f */*.linux
+ cp extra/comp_err extra/comp_err.linux
+ cp libmysql/conf_to_src libmysql/conf_to_src.linux
+ cp libmysql/conf_to_src libmysql_r/conf_to_src.linux
+ cp sql/gen_lex_hash sql/gen_lex_hash.linux
+ cp strings/conf_to_src strings/conf_to_src.linux
+
+ echo "cleaning linux build..."
+ make clean distclean
+fi
+
+echo "starting netware build..."
+
+# remove stale Makefile.in.bk files
+rm -rf Makefile.in.bk
+
+# start mw enviornment
+chmod +x ./netware/nwconfigure
+chmod +x ./netware/mw/mwenv
+chmod +x ./netware/mw/mwasmnlm
+chmod +x ./netware/mw/mwccnlm
+chmod +x ./netware/mw/mwldnlm
+
+. ./netware/mw/mwenv
+
+# link nwconfigure
+rm -f ./nwconfigure
+ln ./netware/nwconfigure ./nwconfigure
+
+# save old builds from previous run
+if test -e *.tar.gz
+then
+ rm -f *.tar.gz.old
+ rename .tar.gz .tar.gz.old *.tar.gz
+fi
+
+echo "autotools..."
+autotools
+
+# debug build
+if test $build_debug -eq 1
+then
+ echo "configuring for netware (debug)..."
+ ./nwconfigure --with-debug=full
+
+ echo "building for netware (debug)..."
+ make clean bin-dist
+
+ # mark the debug build
+ rename .tar.gz -debug.tar.gz *.tar.gz
+fi
+
+# release build
+if test $build -eq 1
+then
+ echo "configuring for netware..."
+ ./nwconfigure
+
+ echo "building for netware..."
+ make clean bin-dist
+fi
+
+echo "done"
+
+
diff --git a/netware/nwconfigure b/netware/nwconfigure
new file mode 100644
index 00000000000..aeb68ada5b8
--- /dev/null
+++ b/netware/nwconfigure
@@ -0,0 +1,23 @@
+#! /bin/sh
+CMD="\
+ AR='mwldnlm' \
+ AR_FLAGS='-type library -o' \
+ AS='mwasmnlm' \
+ CC='mwccnlm -gccincludes' \
+ CFLAGS='-dialect c -proc 686 -bool on -relax_pointers -DUSE_OLD_FUNCTIONS' \
+ CXX='mwccnlm -gccincludes' \
+ CXXFLAGS='-dialect c++ -proc 686 -bool on -relax_pointers' \
+ LD='mwldnlm' \
+ LDFLAGS='-entry _LibCPrelude -exit _LibCPostlude -flags pseudopreemption' \
+ RANLIB=: \
+ STRIP=: \
+ ./configure --host=i686-pc-netware $* \
+ --without-docs \
+ --enable-local-infile \
+ --with-extra-charsets=all \
+ --prefix=N:/mysql \
+ "
+#rm -f config.cache config.log config.status
+echo $CMD
+eval $CMD
+