binbuild.sh revision 1abda201e49646ada8a4d90d63f82a850034c63d
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# binbuild.sh - Builds an Apache binary distribution.
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# Initially written by Lars Eilebrecht <lars@apache.org>.
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# This script falls under the Apache License.
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndCONFIGPARAM="--with-layout=BinaryDistribution --enable-module=most --enable-shared=max"
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndif [ x$1 != x ]
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndif [ ! -f ./ABOUT_APACHE ]
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung echo "ERROR: The current directory contains no valid Apache distribution."
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "Please change the directory to the top level directory of a freshly"
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf echo "unpacked Apache 1.3 source distribution and re-execute the script"
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndif [ -d ./CVS ]
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "ERROR: The current directory is a CVS checkout of Apache."
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "Only a standard Apache 1.3 source distribution should be used to"
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "create a binary distribution."
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndecho "Building Apache $VER binary distribution..."
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndecho "Platform is \"$OS\"..."
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" && \
5effc8b39fae5cd169d17f342bfc265705840014rbowen echo "----------------------------------------------------------------------" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "ERROR: Failed to build Apache. See \"build.log\" for details."
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndecho "Binary image successfully created..."
1cc20a8827ff6056399d64e3106b44d31e8e0e53ndecho "Creating supplementary files..."
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "This binary distribution is usable on a \"$OS\"" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "The distribution contains all standard Apache modules as shared" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "objects. This allows you to enable or disable particular modules" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "with the LoadModule/AddModule directives in the configuration file" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "See \"INSTALL.bindist\" on how to install the distribution." && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "NOTE: Please do not send support-related mails to the address mentioned" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " above or to any member of the Apache Group! Support questions" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " should be directed to the \"comp.infosystems.www.servers.unix\"" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " or \"comp.infosystems.www.servers.ms-windows\" newsgroup" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " (as appropriate for the platform you use), where some of the" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " Apache team lurk, in the company of many other Apache gurus" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " If you think you found a bug in Apache or have a suggestion please" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo " visit the bug report page at http://www.apache.org/bug_report.html" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "----------------------------------------------------------------------" \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "To install this binary distribution you have to execute the installation" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "script \"install-bindist.sh\" in the top-level directory of the distribution." && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "The script takes the ServerRoot directory into which you want to install" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "Apache as an option. If you ommit the option the default path" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "Make sure you have write permissions in the target directory, e.g. switch" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "to user \"root\" before you execute the script." && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "See \"README.bindist\" for further details about this distribution." && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "Please note that this distribution includes the complete Apache source code." && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "Therefore you may compile Apache yourself at any time if you have a compiler" && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "See \"INSTALL\" for details on how to accomplish this." && \
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd echo "# This script installs the Apache binary distribution and" && \
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung echo "echo \"Installing binary distribution for platform $OS\"" && \
echo "sed -e s%PIDFILE=%PIDFILE=\$SR/% -e s%HTTPD=%HTTPD=\\\"\$SR/% -e \"s%/httpd$%/httpd -d \$SR\\\"%\" bindist/bin/apachectl > \$SR/bin/apachectl" && \
echo "ERROR: Failed to build Apache. See \"build.log\" for details."