mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
4a801dde7e
1) Ensure "init_db.sql" and "test_db-sql" really get built. 2) Ensure the "*.def" files with NetWare linker options get distributed to the proper directories. netware/BUILD/compile-netware-END: Ensure the "*.def" files are built for NetWare. This is a backport of a 5.1 fix which may not be needed in 5.0 but cannot do any harm: the general "link_sources" step might fall victim to a cleanup which would be fatal just for NetWare, because of problems in the ordering of SUBDIR entries. netware/Makefile.am: 1) The scripts "init_db.sql" and "test_db.sql" must be built in the NetWare phase. 2) Use "basename", not sed.
52 lines
937 B
Bash
Executable file
52 lines
937 B
Bash
Executable file
#! /bin/sh
|
|
|
|
# debug
|
|
#set -x
|
|
|
|
# stop on errors
|
|
set -e
|
|
|
|
path=`dirname $0`
|
|
|
|
# clean
|
|
if test -e "Makefile"; then make -k clean; fi
|
|
|
|
# remove files
|
|
rm -f */.deps/*.P
|
|
rm -rf Makefile.in.bk
|
|
|
|
# Setup Metrowerks environment
|
|
. $path/mwenv
|
|
|
|
# Temporary hack to allow building from source dist
|
|
if [ ! "$USER"=pushbuild ]
|
|
then
|
|
# Run autotools(use BUILD/autorun.sh)
|
|
echo "Running autotools again(BUILD/autorun.sh)"
|
|
. BUILD/autorun.sh
|
|
fi
|
|
|
|
# configure
|
|
./configure $base_configs $extra_configs
|
|
|
|
# Ensure a clean tree
|
|
make clean
|
|
|
|
# Link NetWare specific .def files into their proper locations
|
|
# in the source tree
|
|
( cd netware && make link_sources )
|
|
|
|
# Now, do the real build
|
|
make bin-dist
|
|
|
|
# mark the build
|
|
for file in *.tar.gz *.zip
|
|
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
|
|
|