mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
34 lines
496 B
Text
34 lines
496 B
Text
|
#! /bin/sh
|
||
|
|
||
|
if [ $# -gt 0 -a "$1" = "-p" ]
|
||
|
then
|
||
|
shift
|
||
|
NDB_TOP=$1
|
||
|
shift
|
||
|
else
|
||
|
NDB_TOP=`pwd`
|
||
|
fi
|
||
|
|
||
|
cd $NDB_TOP
|
||
|
NDB_TOP=`pwd`
|
||
|
|
||
|
for i in `find . -name 'Makefile' -exec dirname {} \;`
|
||
|
do
|
||
|
cd $i
|
||
|
rel_path=.
|
||
|
while [ $NDB_TOP != `pwd` ]
|
||
|
do
|
||
|
rel_path=$rel_path"/.."
|
||
|
cd ..
|
||
|
done
|
||
|
|
||
|
(
|
||
|
echo "NDB_TOP=$rel_path"
|
||
|
echo "include $rel_path/Defs.mk"
|
||
|
) > $i/.defs.mk
|
||
|
done
|
||
|
|
||
|
( cd config ; aclocal ; automake ; aclocal ; autoconf ; ./configure )
|
||
|
export NDB_TOP
|
||
|
. config/GuessConfig.sh $*
|