mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
b72506881b
The default "awk" there cannot handle some of the scripts which are used by BDB for configuration. The fix: 1) Introduce a variable "AWK" in some of the BDB shell scripts, 2) search "gawk" and give it precedence over "awk" when assigning a value to the "AWK" variable, fail if neither is found, 3) use that variable when calling an "awk" program with one of the critical scripts. The perfect solution would be to use the "awk" program found by "configure", but we cannot follow that approach because BDB's configuration is handled as a special case before the overall "configure" is run. Because of this, 1) the "configure" result isn't yet available, 2) "configure" will not handle these BDB files. Searching "gawk" is a (not-so-nice) way out. Note that all this need not be perfectly portable, it is needed only when we create a source distribution tarball from a develkopment tree.
38 lines
787 B
Bash
38 lines
787 B
Bash
#!/bin/sh -
|
|
# $Id: s_all,v 1.10 2001/08/04 14:01:44 bostic Exp $
|
|
|
|
# Search an AWK program, use GNU awk if available
|
|
for x in gawk awk ; do
|
|
if type $x; then
|
|
AWK=$x
|
|
break
|
|
fi
|
|
done
|
|
|
|
if test -z "$AWK"; then
|
|
echo 'No AWK program found'
|
|
exit 1
|
|
fi
|
|
export AWK
|
|
# end of AWK search
|
|
|
|
sh s_dir
|
|
|
|
#sh s_perm # permissions.
|
|
sh s_symlink # symbolic links.
|
|
sh s_readme # db/README file.
|
|
|
|
#
|
|
# The following order is important, s_include must run last.
|
|
#
|
|
sh s_config # autoconf.
|
|
sh s_recover # logging/recovery files.
|
|
sh s_rpc # RPC files.
|
|
sh s_include # standard include files.
|
|
|
|
sh s_win32 # Win32 include files.
|
|
sh s_win32_dsp # Win32 build environment.
|
|
#sh s_vxworks # VxWorks include files.
|
|
#sh s_java # Java support.
|
|
sh s_test # Test suite support.
|
|
sh s_tags # Tags files.
|