mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
f799dca8d0
ndb/src/Makefile_old: Rename: ndb/src/Makefile -> ndb/src/Makefile_old ndb/src/common/Makefile_old: Rename: ndb/src/common/Makefile -> ndb/src/common/Makefile_old ndb/src/common/portlib/Makefile_old: Rename: ndb/src/common/portlib/Makefile -> ndb/src/common/portlib/Makefile_old ndb/src/common/portlib/unix/Makefile_old: Rename: ndb/src/common/portlib/unix/Makefile -> ndb/src/common/portlib/unix/Makefile_old ndb/src/common/debugger/Makefile_old: Rename: ndb/src/common/debugger/Makefile -> ndb/src/common/debugger/Makefile_old ndb/src/common/logger/Makefile_old: Rename: ndb/src/common/logger/Makefile -> ndb/src/common/logger/Makefile_old ndb/src/common/util/Makefile_old: Rename: ndb/src/common/util/Makefile -> ndb/src/common/util/Makefile_old ndb/src/common/mgmcommon/Makefile_old: Rename: ndb/src/common/mgmcommon/Makefile -> ndb/src/common/mgmcommon/Makefile_old ndb/src/common/transporter/Makefile_old: Rename: ndb/src/common/transporter/Makefile -> ndb/src/common/transporter/Makefile_old ndb/src/kernel/Makefile_old: Rename: ndb/src/kernel/Makefile -> ndb/src/kernel/Makefile_old ndb/src/kernel/error/Makefile_old: Rename: ndb/src/kernel/error/Makefile -> ndb/src/kernel/error/Makefile_old ndb/src/kernel/blocks/Makefile_old: Rename: ndb/src/kernel/blocks/Makefile -> ndb/src/kernel/blocks/Makefile_old ndb/src/kernel/blocks/cmvmi/Makefile_old: Rename: ndb/src/kernel/blocks/cmvmi/Makefile -> ndb/src/kernel/blocks/cmvmi/Makefile_old ndb/src/kernel/blocks/dbacc/Makefile_old: Rename: ndb/src/kernel/blocks/dbacc/Makefile -> ndb/src/kernel/blocks/dbacc/Makefile_old ndb/src/kernel/blocks/dbdict/Makefile_old: Rename: ndb/src/kernel/blocks/dbdict/Makefile -> ndb/src/kernel/blocks/dbdict/Makefile_old ndb/src/kernel/blocks/dbdih/Makefile_old: Rename: ndb/src/kernel/blocks/dbdih/Makefile -> ndb/src/kernel/blocks/dbdih/Makefile_old ndb/src/kernel/blocks/dblqh/Makefile_old: Rename: ndb/src/kernel/blocks/dblqh/Makefile -> ndb/src/kernel/blocks/dblqh/Makefile_old ndb/src/kernel/blocks/dbtc/Makefile_old: Rename: ndb/src/kernel/blocks/dbtc/Makefile -> ndb/src/kernel/blocks/dbtc/Makefile_old ndb/src/kernel/blocks/dbtup/Makefile_old: Rename: ndb/src/kernel/blocks/dbtup/Makefile -> ndb/src/kernel/blocks/dbtup/Makefile_old ndb/src/kernel/blocks/ndbfs/Makefile_old: Rename: ndb/src/kernel/blocks/ndbfs/Makefile -> ndb/src/kernel/blocks/ndbfs/Makefile_old ndb/src/kernel/blocks/ndbcntr/Makefile_old: Rename: ndb/src/kernel/blocks/ndbcntr/Makefile -> ndb/src/kernel/blocks/ndbcntr/Makefile_old ndb/src/kernel/blocks/qmgr/Makefile_old: Rename: ndb/src/kernel/blocks/qmgr/Makefile -> ndb/src/kernel/blocks/qmgr/Makefile_old ndb/src/kernel/blocks/trix/Makefile_old: Rename: ndb/src/kernel/blocks/trix/Makefile -> ndb/src/kernel/blocks/trix/Makefile_old ndb/src/kernel/blocks/backup/Makefile_old: Rename: ndb/src/kernel/blocks/backup/Makefile -> ndb/src/kernel/blocks/backup/Makefile_old ndb/src/kernel/blocks/dbutil/Makefile_old: Rename: ndb/src/kernel/blocks/dbutil/Makefile -> ndb/src/kernel/blocks/dbutil/Makefile_old ndb/src/kernel/blocks/suma/Makefile_old: Rename: ndb/src/kernel/blocks/suma/Makefile -> ndb/src/kernel/blocks/suma/Makefile_old ndb/src/kernel/blocks/grep/Makefile_old: Rename: ndb/src/kernel/blocks/grep/Makefile -> ndb/src/kernel/blocks/grep/Makefile_old ndb/src/kernel/blocks/dbtux/Makefile_old: Rename: ndb/src/kernel/blocks/dbtux/Makefile -> ndb/src/kernel/blocks/dbtux/Makefile_old ndb/src/kernel/vm/Makefile_old: Rename: ndb/src/kernel/vm/Makefile -> ndb/src/kernel/vm/Makefile_old ndb/src/kernel/ndb-main/Makefile_old: Rename: ndb/src/kernel/ndb-main/Makefile -> ndb/src/kernel/ndb-main/Makefile_old ndb/src/ndbapi/Makefile_old: Rename: ndb/src/ndbapi/Makefile -> ndb/src/ndbapi/Makefile_old ndb/src/common/debugger/signaldata/Makefile_old: Rename: ndb/src/common/debugger/signaldata/Makefile -> ndb/src/common/debugger/signaldata/Makefile_old ndb/src/mgmapi/Makefile_old: Rename: ndb/src/mgmapi/Makefile -> ndb/src/mgmapi/Makefile_old ndb/src/mgmsrv/Makefile_old: Rename: ndb/src/mgmsrv/Makefile -> ndb/src/mgmsrv/Makefile_old ndb/src/mgmclient/Makefile_old: Rename: ndb/src/mgmclient/Makefile -> ndb/src/mgmclient/Makefile_old ndb/Makefile_old: Rename: ndb/Makefile -> ndb/Makefile_old ndb/src/cw/Makefile_old: Rename: ndb/src/cw/Makefile -> ndb/src/cw/Makefile_old ndb/src/cw/cpcd/Makefile_old: Rename: ndb/src/cw/cpcd/Makefile -> ndb/src/cw/cpcd/Makefile_old ndb/test/Makefile_old: Rename: ndb/test/Makefile -> ndb/test/Makefile_old ndb/test/src/Makefile_old: Rename: ndb/test/src/Makefile -> ndb/test/src/Makefile_old ndb/src/common/editline/Makefile_old: Rename: ndb/src/common/editline/Makefile -> ndb/src/common/editline/Makefile_old ndb/configure_old: Rename: ndb/configure -> ndb/configure_old ndb/test/tools/Makefile_old: Rename: ndb/test/tools/Makefile -> ndb/test/tools/Makefile_old ndb/test/run-test/Makefile_old: Rename: ndb/test/run-test/Makefile -> ndb/test/run-test/Makefile_old ndb/Epilogue.mk_old: Rename: ndb/Epilogue.mk -> ndb/Epilogue.mk_old ndb/src/kernel/blocks/backup/restore/Makefile_old: Rename: ndb/src/kernel/blocks/backup/restore/Makefile -> ndb/src/kernel/blocks/backup/restore/Makefile_old ndb/config/Makefile.am_old: Rename: ndb/config/Makefile.am -> ndb/config/Makefile.am_old ndb/config/GuessConfig.sh_old: Rename: ndb/config/GuessConfig.sh -> ndb/config/GuessConfig.sh_old ndb/test/ndbapi/Makefile_old: Rename: ndb/test/ndbapi/Makefile.am -> ndb/test/ndbapi/Makefile_old ndb/test/ndbapi/flexBench/Makefile_old: Rename: ndb/test/ndbapi/flexBench/Makefile.am -> ndb/test/ndbapi/flexBench/Makefile_old
116 lines
1.8 KiB
Bash
Executable file
116 lines
1.8 KiB
Bash
Executable file
#! /bin/sh
|
|
|
|
if [ -z "$NDB_TOP" ]
|
|
then
|
|
echo "You have not set NDB_TOP. Exiting" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$NDB_SCI" ]
|
|
then
|
|
NDB_SCI=N
|
|
fi
|
|
|
|
if [ -z "$NDB_SHM" ]
|
|
then
|
|
NDB_SHM=N
|
|
fi
|
|
|
|
os=`uname -s`
|
|
case $os in
|
|
Linux)
|
|
NDB_OS=LINUX
|
|
NDB_ARCH=x86
|
|
NDB_COMPILER=GCC
|
|
;;
|
|
Darwin)
|
|
NDB_OS=MACOSX
|
|
NDB_ARCH=POWERPC
|
|
NDB_COMPILER=GCC
|
|
;;
|
|
HP-UX)
|
|
NDB_OS=HPUX
|
|
NDB_ARCH=HPPA
|
|
NDB_COMPILER=GCC
|
|
;;
|
|
CYGWIN_NT-5.0)
|
|
NDB_OS=WIN32
|
|
NDB_ARCH=x86
|
|
NDB_COMPILER=VC7
|
|
;;
|
|
*)
|
|
if [ "$os" = "SunOS" ] && [ `uname -r` = "5.6" ]
|
|
then
|
|
NDB_OS=OSE
|
|
NDB_ARCH=PPC750
|
|
NDB_COMPILER=DIAB
|
|
else
|
|
NDB_OS=SOLARIS
|
|
NDB_ARCH=SPARC
|
|
NDB_COMPILER=GCC
|
|
fi;;
|
|
esac
|
|
|
|
if [ -z "$NDB_ODBC" ]
|
|
then
|
|
NDB_ODBC=N
|
|
fi
|
|
|
|
|
|
mch=`uname -m`
|
|
case $mch in
|
|
x86_64)
|
|
NDB_ARCH=x86_64
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
if [ -f $NDB_TOP/config/Makefile ]
|
|
then
|
|
TERMCAP_LIB=`grep TERMCAP_LIB $NDB_TOP/config/Makefile | sed -e s,"TERMCAP_LIB.*=.*-l","",g`
|
|
fi
|
|
if [ "$TERMCAP_LIB" = "" ]
|
|
then
|
|
TERMCAP_LIB=termcap
|
|
fi
|
|
|
|
# defaults
|
|
NDB_VERSION=DEBUG
|
|
PACKAGE=
|
|
VERSION=
|
|
|
|
parse_arguments() {
|
|
for arg do
|
|
case "$arg" in
|
|
-GCC) NDB_COMPILER=GCC ;;
|
|
-R) NDB_VERSION=RELEASE ;;
|
|
-D) NDB_VERSION=DEBUG ;;
|
|
--PACKAGE=*) PACKAGE=`echo "$arg" | sed -e "s;--PACKAGE=;;"` ;;
|
|
--VERSION=*) VERSION=`echo "$arg" | sed -e "s;--VERSION=;;"` ;;
|
|
*)
|
|
echo "Unknown argument '$arg'"
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
parse_arguments "$@"
|
|
|
|
(
|
|
echo "# This file was automatically generated `date`"
|
|
echo "NDB_OS := $NDB_OS"
|
|
echo "NDB_ARCH := $NDB_ARCH"
|
|
echo "NDB_COMPILER := $NDB_COMPILER"
|
|
echo "NDB_VERSION := $NDB_VERSION"
|
|
echo "NDB_SCI := $NDB_SCI"
|
|
echo "NDB_SHM := $NDB_SHM"
|
|
echo "NDB_ODBC := $NDB_ODBC"
|
|
echo "TERMCAP_LIB := $TERMCAP_LIB"
|
|
echo "PACKAGE := $PACKAGE"
|
|
echo "VERSION := $VERSION"
|
|
) > $NDB_TOP/config/config.mk
|
|
|
|
exit 0
|
|
|