mariadb/netware/BUILD/compile-netware-END

46 lines
770 B
Text
Raw Normal View History

#! /bin/sh
2003-03-04 05:04:36 +01:00
# debug
#set -x
# stop on errors
set -e
2003-03-04 05:04:36 +01:00
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
2003-03-04 05:04:36 +01:00
. $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
2003-03-04 05:04:36 +01:00
# configure
./configure $base_configs $extra_configs
# make
make clean bin-dist
# mark the build
for file in *.tar.gz *.zip
2003-03-04 05:04:36 +01:00
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