Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
61f280a9
Commit
61f280a9
authored
Mar 03, 2003
by
greg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New build scripts for NetWare
parent
8fb09059
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
358 additions
and
12 deletions
+358
-12
netware/BUILD/compile-AUTOTOOLS
netware/BUILD/compile-AUTOTOOLS
+16
-0
netware/BUILD/compile-linux-tools
netware/BUILD/compile-linux-tools
+52
-0
netware/BUILD/compile-netware-END
netware/BUILD/compile-netware-END
+35
-0
netware/BUILD/compile-netware-START
netware/BUILD/compile-netware-START
+23
-0
netware/BUILD/compile-netware-all
netware/BUILD/compile-netware-all
+8
-0
netware/BUILD/compile-netware-debug
netware/BUILD/compile-netware-debug
+15
-0
netware/BUILD/compile-netware-standard
netware/BUILD/compile-netware-standard
+14
-0
netware/BUILD/mwasmnlm
netware/BUILD/mwasmnlm
+0
-0
netware/BUILD/mwccnlm
netware/BUILD/mwccnlm
+0
-0
netware/BUILD/mwenv
netware/BUILD/mwenv
+29
-0
netware/BUILD/mwldnlm
netware/BUILD/mwldnlm
+0
-0
netware/BUILD/nwbootstrap
netware/BUILD/nwbootstrap
+166
-0
netware/mw/mwenv
netware/mw/mwenv
+0
-12
No files found.
netware/BUILD/compile-AUTOTOOLS
0 → 100644
View file @
61f280a9
#! /bin/sh
for
package
in
.
./innobase
do
(
cd
$package
rm
-rf
config.cache autom4te.cache
aclocal
autoheader
libtoolize
--force
aclocal
automake
--add-missing
--force-missing
autoconf
)
done
#rm -rf ./bdb/build_unix/config.cache ./bdb/dist/autom4te.cache
#(cd ./bdb/dist && sh s_all)
netware/BUILD/compile-linux-tools
0 → 100644
View file @
61f280a9
#! /bin/sh
#debug
#set -x
if
test
!
-r
./sql/mysqld.cc
then
echo
"you must start from the top source directory"
exit
1
fi
path
=
`
dirname
$0
`
# clean
if
test
-e
"Makefile"
;
then
make
-k
clean
;
fi
# remove files
rm
-f
NEW-RPMS/
*
rm
-f
*
/.deps/
*
.P
rm
-f
*
/
*
.linux
# run autotools
.
$path
/compile-AUTOTOOLS
# configure
./configure
--without-innodb
--without-docs
# build tools only
make clean config.h
(
cd
dbug
;
make libdbug.a
)
(
cd
strings
;
make libmystrings.a
)
(
cd
mysys
;
make libmysys.a
)
(
cd
heap
;
make libheap.a
)
(
cd
vio
;
make libvio.a
)
(
cd
regex
;
make libregex.a
)
(
cd
isam
;
make libnisam.a
)
(
cd
merge
;
make libmerge.a
)
(
cd
myisam
;
make libmyisam.a
)
(
cd
myisammrg
;
make libmyisammrg.a
)
(
cd
extra
;
make comp_err
)
(
cd
libmysql
;
make conf_to_src
)
(
cd
libmysql_r
;
make conf_to_src
)
(
cd
sql
;
make gen_lex_hash
)
(
cd
strings
;
make conf_to_src
)
# copying required linux tools
cp
extra/comp_err extra/comp_err.linux
cp
libmysql/conf_to_src libmysql/conf_to_src.linux
cp
libmysql_r/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
netware/BUILD/compile-netware-END
0 → 100644
View file @
61f280a9
#! /bin/sh
path
=
`
dirname
$0
`
# clean
if
test
-e
"Makefile"
;
then
make
-k
clean
;
fi
# remove files
rm
-f
NEW-RPMS/
*
rm
-f
*
/.deps/
*
.P
rm
-rf
Makefile.in.bk
# Metrowerks enviornment
.
$path
/mwenv
# run auto tools
.
$path
/compile-AUTOTOOLS
# configure
./configure
$base_configs
$extra_configs
# make
make clean bin-dist
# mark the build
for
file
in
*
.tar.gz
do
if
(
expr
"
$file
"
:
"mysql-[1-9].*"
>
/dev/null
)
then
new_file
=
`
echo
$file
|
sed
-e
"s/mysql-/mysql-
$suffix
-/"
`
if
test
-e
"
$new_file
"
;
then
mv
-f
$new_file
$new_file
.old
;
fi
mv
$file
$new_file
fi
done
netware/BUILD/compile-netware-START
0 → 100644
View file @
61f280a9
#! /bin/sh
#debug
#set -x
if
test
!
-r
./sql/mysqld.cc
then
echo
"you must start from the top source directory"
exit
1
fi
path
=
`
dirname
$0
`
# stop on errors
set
-e
base_configs
=
"
\
--host=i686-pc-netware
\
--enable-local-infile
\
--with-extra-charsets=all
\
--prefix=N:/mysql
\
"
netware/BUILD/compile-netware-all
0 → 100644
View file @
61f280a9
#! /bin/sh
path
=
`
dirname
$0
`
$path
/compile-netware-standard
$path
/compile-netware-debug
#$path/compile-netware-max
#$path/compile-netware-max-debug
netware/BUILD/compile-netware-debug
0 → 100644
View file @
61f280a9
#! /bin/sh
path
=
`
dirname
$0
`
.
$path
/compile-netware-START
suffix
=
"debug"
extra_configs
=
"
\
--with-innodb
\
--with-debug=full
\
"
.
$path
/compile-netware-END
netware/BUILD/compile-netware-standard
0 → 100644
View file @
61f280a9
#! /bin/sh
path
=
`
dirname
$0
`
.
$path
/compile-netware-START
suffix
=
"standard"
extra_configs
=
"
\
--with-innodb
"
.
$path
/compile-netware-END
netware/
mw
/mwasmnlm
→
netware/
BUILD
/mwasmnlm
View file @
61f280a9
File moved
netware/
mw
/mwccnlm
→
netware/
BUILD
/mwccnlm
View file @
61f280a9
File moved
netware/BUILD/mwenv
0 → 100644
View file @
61f280a9
#! /bin/sh
# WINE_BUILD_DIR, BUILD_DIR, and VERSION must be changed before compiling
# This values are normally changed by the nwbootstrap script
# the default for WINE_BUILD_DIR is "F:/mydev"
export
MYDEV
=
"WINE_BUILD_DIR"
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"
# the default for BUILD_DIR is "$HOME/mydev"
export
PATH
=
"
$PATH
:BUILD_DIR/mysql-VERSION/netware/BUILD"
export
AR
=
'mwldnlm'
export
AR_FLAGS
=
'-type library -o'
export
AS
=
'mwasmnlm'
export
CC
=
'mwccnlm -gccincludes'
export
CFLAGS
=
'-dialect c -proc 686 -bool on -relax_pointers -DUSE_OLD_FUNCTIONS'
export
CXX
=
'mwccnlm -gccincludes'
export
CXXFLAGS
=
'-dialect c++ -proc 686 -bool on -relax_pointers'
export
LD
=
'mwldnlm'
export
LDFLAGS
=
'-entry _LibCPrelude -exit _LibCPostlude -flags pseudopreemption'
export
RANLIB
=
:
export
STRIP
=
:
netware/
mw
/mwldnlm
→
netware/
BUILD
/mwldnlm
View file @
61f280a9
File moved
netware/BUILD/nwbootstrap
0 → 100644
View file @
61f280a9
#! /bin/sh
# debug
#set -x
path
=
`
dirname
$0
`
# stop on errors
set
-e
# repository direcotry
repo_dir
=
`
pwd
`
# build direcotry
build_dir
=
"
$HOME
/mydev"
wine_build_dir
=
"F:/mydev"
# doc directory
doc_dir
=
"
$repo_dir
/../mysqldoc"
# init
target_dir
=
""
temp_dir
=
""
revision
=
""
rev
=
""
build
=
""
mwenv
=
""
# show usage
show_usage
()
{
cat
<<
EOF
usage: nwbootstrap [options]
Exports a revision of the BitKeeper tree (nwbootstrap must be run inside a
directory of the BitKeeper tree to be used). Creates the ChangeLog file.
Adds the latest manual.texi from the mysqldoc BitKeeper tree. Builds the
Linux tools required for cross-platform builds. Optionally, builds the
binary distributions for NetWare.
options:
--build=<opt> Build the binary distributions for NetWare,
where <opt> is "standard", "debug", or "all"
(default is to not build a binary distribution)
--build-dir=<dir> Export the BitKeeper tree to the <dir> directroy
(default is "
$build_dir
")
--doc-dir=<dir> Use the mysqldoc BitKeeper tree located in the
<dir> directory
(default is parallel to current BitKeeper tree)
--help Show this help information
--revision=<rev> Export the BitKeeper tree as of revision <rev>
(default is the latest revision)
--wine-build-dir=<dir> Use the WINE directory <dir>, which should
correspond to the --build-dir directory
(default is "
$wine_build_dir
")
examples:
nwbootstrap
nwbootstrap --revision=1.1594 --build=all
nwbootstrap --build-dir=/home/jdoe/dev --wine-build-dir=F:/dev
EOF
exit
0
;
}
# parse arguments
for
arg
do
case
"
$arg
"
in
--build-dir
=
*
)
build_dir
=
`
echo
"
$arg
"
|
sed
-e
"s;--build-dir=;;"
`
;;
--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=;;"
`
;;
--doc-dir
=
*
)
doc_dir
=
`
echo
"
$arg
"
|
sed
-e
"s;--doc-dir=;;"
`
;;
*
)
show_usage
;;
esac
done
echo
"starting build..."
# check for bk and repo_dir
bk
help
>
/dev/null
repo_dir
=
`
bk root
$repo_dir
`
cd
$repo_dir
doc_dir
=
"
$repo_dir
/../mysqldoc"
# build temporary directory
temp_dir
=
"
$build_dir
/mysql-
$$
.tmp"
# export the bk tree
command
=
"bk export"
;
if
test
$revision
;
then
command
=
"
$command
-r
$revision
"
;
fi
command
=
"
$command
$temp_dir
"
echo
"exporting
$repo_dir
..."
$command
# determine version
version
=
`
grep
-e
"AM_INIT_AUTOMAKE(mysql, .*)"
<
$temp_dir
/configure.in |
sed
-e
"s/AM_INIT_AUTOMAKE(mysql,
\(
.*
\)
)/
\1
/"
`
echo
"version:
$version
"
# build target directory
target_dir
=
"
$build_dir
/mysql-
$version
"
# delete any old target
if
test
-d
$target_dir
.old
;
then
rm
-rf
$target_dir
.old
;
fi
# rename old target
if
test
-d
$target_dir
;
then
mv
-f
$target_dir
$target_dir
.old
;
fi
# rename directory to use version
mv
$temp_dir
$target_dir
# create ChangeLog
if
test
$revision
then
rev
=
`
bk changes
-r
..
$revision
-t
-d
':REV:'
-n
|
head
-2
|
tail
-1
`
else
rev
=
`
bk changes
-t
-d
':REV:'
-n
|
head
-1
`
fi
echo
"creating ChangeLog..."
bk changes
-v
-r
$rev
>
$target_dir
/ChangeLog
# add the latest manual
if
test
-d
$doc_dir
then
echo
"adding the latest manual..."
install
-m
644
$doc_dir
/Docs/
{
manual,reservedwords
}
.texi
$target_dir
/Docs/
fi
# make files writeable
cd
$target_dir
chmod
-R
u+rw,g+rw
.
# edit the mvenv file
mwenv
=
"./netware/BUILD/mwenv"
mv
-f
$mwenv
$mwenv
.org
sed
-e
"s;WINE_BUILD_DIR;
$wine_build_dir
;g"
\
-e
"s;BUILD_DIR;
$build_dir
;g"
\
-e
"s;VERSION;
$version
;g"
$mwenv
.org
>
$mwenv
chmod
+rwx
$mwenv
# build linux tools
echo
"compiling linux tools..."
./netware/BUILD/compile-linux-tools
# compile
if
test
$build
then
echo
"compiling
$build
..."
./netware/BUILD/compile-netware-
$build
fi
echo
"done"
netware/mw/mwenv
deleted
100644 → 0
View file @
8fb09059
#! /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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment