mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			876 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			876 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 NEW-RPMS/*
 | 
						|
rm -f */.deps/*.P
 | 
						|
rm -rf Makefile.in.bk
 | 
						|
 | 
						|
# Metrowerks enviornment
 | 
						|
. $path/mwenv
 | 
						|
 | 
						|
# run auto tools
 | 
						|
. $path/compile-AUTOTOOLS
 | 
						|
 | 
						|
# For NetWare there is no comp_err but comp_err.linux
 | 
						|
sed -e "s/comp_err/comp_err.linux/g" extra/Makefile.am > extra/Makefile.am.$$
 | 
						|
sed -e "s/replace comp_err.linux/replace comp_err/g" extra/Makefile.am.$$ > extra/Makefile.am
 | 
						|
rm extra/Makefile.am.$$
 | 
						|
 | 
						|
# configure
 | 
						|
./configure $base_configs $extra_configs
 | 
						|
 | 
						|
# make
 | 
						|
make clean 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
 | 
						|
 |