mirror of
https://github.com/apache/httpd.git
synced 2025-08-15 23:27:39 +00:00

- enable it to be run from any dir by passing a parameter for the location of srclib, and using its own location for determining where the AWK script is located - accept exports files on STDIN, and produce output on STDOUT - use "pwd" and cd back to it, rather than assuming ../../.. (which might not apply if we feed it other export files) - add USAGE reporting *) generate exports.c during normal build of "server" rather than during the buildconf stage. update invocation to match above changes *) revamp the ap_ugly_hack referencing in main.c: put it at the bottom of the file with the other, similar references, and style it similarly. *) remove the ap_ugly_hack declaration from http_main.h; it is internal to the "server" code git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87249 13f79535-47bb-0310-9956-ffa450edef68
33 lines
680 B
Bash
Executable File
33 lines
680 B
Bash
Executable File
#! /bin/sh
|
|
|
|
if test -z "$1"; then
|
|
echo "USAGE: $0 SRCLIB-DIRECTORY"
|
|
echo ""
|
|
echo "for example: $0 ../srclib"
|
|
exit 1
|
|
fi
|
|
|
|
echo "/* This is an ugly hack that needs to be here, so that libtool will"
|
|
echo " * link all of the APR functions into server regardless of whether"
|
|
echo " * the base server uses them."
|
|
echo " */"
|
|
echo ""
|
|
|
|
cur_dir="`pwd`"
|
|
for dir in $1/apr/include $1/apr-util/include
|
|
do
|
|
cd $dir
|
|
for file in *.h; do
|
|
echo "#include \"$file\""
|
|
done
|
|
cd "$cur_dir"
|
|
done
|
|
|
|
echo ""
|
|
echo "const void *ap_ugly_hack;"
|
|
echo ""
|
|
|
|
# convert export files (on STDIN) into a series of declarations
|
|
my_dir="`dirname $0`"
|
|
awk -f "$my_dir/buildexports.awk"
|