binbuild.sh revision 29f36295d4e95ef41b3eb2c24908ee0638a32198
55c79512242fd281202cd57ca18defac696440f5kess#!/bin/sh
55c79512242fd281202cd57ca18defac696440f5kess#
55c79512242fd281202cd57ca18defac696440f5kess# binbuild.sh - Builds an Apache binary distribution.
55c79512242fd281202cd57ca18defac696440f5kess# Initially written by Lars Eilebrecht <lars@apache.org>.
55c79512242fd281202cd57ca18defac696440f5kess#
55c79512242fd281202cd57ca18defac696440f5kess# This script falls under the Apache License.
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd# See http://www.apache.org/docs/LICENSE
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndCONFIGPARAM="--with-layout=BinaryDistribution --enable-module=most --enable-shared=max"
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndAPDIR=`pwd`
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndAPDIR=`basename $APDIR`
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndVER=`echo $APDIR |sed s/apache_//`
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndOS=`src/helpers/GuessOS`
27e52281f1522522b170cafc76b08b58aa70ccaandTAR="`src/helpers/PrintPath tar`"
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndGTAR="`src/helpers/PrintPath gtar`"
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndGZIP="`src/helpers/PrintPath gzip`"
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd
27e52281f1522522b170cafc76b08b58aa70ccaandif [ x$1 != x ]
3b3b7fc78d1f5bfc2769903375050048ff41ff26ndthen
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd USER=$1
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7ndelse
b05ab3ff5ab54aa22610b13d56eaba6ddfc3db60nd USER="`src/helpers/buildinfo.sh -n %u@%h%d`"
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7ndfi
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26ndif [ ! -f ./ABOUT_APACHE ]
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5ndthen
55c79512242fd281202cd57ca18defac696440f5kess echo "ERROR: The current directory contains no valid Apache distribution."
55c79512242fd281202cd57ca18defac696440f5kess echo "Please change the directory to the top level directory of a freshly"
55c79512242fd281202cd57ca18defac696440f5kess echo "unpacked Apache 1.3 source distribution and re-execute the script"
55c79512242fd281202cd57ca18defac696440f5kess echo "'./src/helpers/bindbuild.sh'."
55c79512242fd281202cd57ca18defac696440f5kess exit 1;
55c79512242fd281202cd57ca18defac696440f5kessfi
1ce7f356a70d1d9961ec315c212e2f83a1452456nd
8f057347a12e831fdf567da83de2fa581580298dndif [ -d ./CVS ]
5b10fd3977e6dfff19afe770e612e276962f7950ndthen
5b10fd3977e6dfff19afe770e612e276962f7950nd echo "ERROR: The current directory is a CVS checkout of Apache."
8f057347a12e831fdf567da83de2fa581580298dnd echo "Only a standard Apache 1.3 source distribution should be used to"
8f057347a12e831fdf567da83de2fa581580298dnd echo "create a binary distribution."
8f057347a12e831fdf567da83de2fa581580298dnd exit 1;
8f057347a12e831fdf567da83de2fa581580298dndfi
8f057347a12e831fdf567da83de2fa581580298dnd
8f057347a12e831fdf567da83de2fa581580298dndecho "Building Apache $VER binary distribution..."
1ce7f356a70d1d9961ec315c212e2f83a1452456ndecho "Platform is \"$OS\"..."
5b10fd3977e6dfff19afe770e612e276962f7950nd
5b10fd3977e6dfff19afe770e612e276962f7950nd( echo "Build log for Apache binary distribution" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo "----------------------------------------------------------------------" && \
2fc082b48b1bfb1182d6b93f5837e74b0c0af3eckess ./configure $CONFIGPARAM && \
2fc082b48b1bfb1182d6b93f5837e74b0c0af3eckess echo "----------------------------------------------------------------------" && \
74086452b5093fa1a58446034c6ddfd67dab5651kess make clean && \
74086452b5093fa1a58446034c6ddfd67dab5651kess rm -rf bindist install-bindist.sh *.bindist
de502b36947f981bb79c4b3529b9f9f5edf35b2dkess echo "----------------------------------------------------------------------" && \
de502b36947f981bb79c4b3529b9f9f5edf35b2dkess make && \
b3c7a2279fa7a45f5807d9a404760b9b3760df50nd echo "----------------------------------------------------------------------" && \
b3c7a2279fa7a45f5807d9a404760b9b3760df50nd make install-quiet root="bindist/" && \
8ba890719035fe67c295c9124693138f9c5aa933kess echo "----------------------------------------------------------------------" && \
8ba890719035fe67c295c9124693138f9c5aa933kess make clean && \
55c79512242fd281202cd57ca18defac696440f5kess echo "----------------------------------------------------------------------" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "[EOF]" \
8f057347a12e831fdf567da83de2fa581580298dnd) > build.log 2>&1
8f057347a12e831fdf567da83de2fa581580298dnd
8f057347a12e831fdf567da83de2fa581580298dndif [ ! -f ./bindist/bin/httpd ]
62664c6703ed9e8d8f4f8e4c5f5e893559ecefecndthen
62664c6703ed9e8d8f4f8e4c5f5e893559ecefecnd echo "ERROR: Failed to build Apache. See \"build.log\" for details."
8f057347a12e831fdf567da83de2fa581580298dnd exit 1;
8f057347a12e831fdf567da83de2fa581580298dndfi
cf60fc8ad0f3a8f4b08351a2a3e346e0662af010nd
eac1d56b0c6d54ddf717d035f808bdfa61e8bd14ndecho "Binary image successfully created..."
b8670d4ea3a3efcd12c3e1eddf68ef6fabef49fend
b8670d4ea3a3efcd12c3e1eddf68ef6fabef49fend./bindist/bin/httpd -v
1ce7f356a70d1d9961ec315c212e2f83a1452456nd
1ce7f356a70d1d9961ec315c212e2f83a1452456ndecho "Creating supplementary files..."
1ce7f356a70d1d9961ec315c212e2f83a1452456nd
db99fa79ac42b9cc42b63386eb289aecb0f3cb9cnd( echo " " && \
5a98f1b67de38575f3903a03fc5120062b814371kess echo "Apache $VER binary distribution" && \
5a98f1b67de38575f3903a03fc5120062b814371kess echo "================================" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "This binary distribution is usable on a \"$OS\"" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "system and was built by \"$USER\"." && \
55c79512242fd281202cd57ca18defac696440f5kess echo "" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "The distribution contains all standard Apache modules as shared" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "objects. This allows you to enable or disable particular modules" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "with the LoadModule/AddModule directives in the configuration file" && \
bc525661d031758c0a4e771543372b4869ca86aand echo "without the need to re-compile Apache." && \
bc525661d031758c0a4e771543372b4869ca86aand echo "" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "See \"INSTALL.bindist\" on how to install the distribution." && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
909ce17e2bd0faef7b1c294f2307f009793fd493nd echo "NOTE: Please do not send support-related mails to the address mentioned" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " above or to any member of the Apache Group! Support questions" && \
312d4192f2e32167a1e750034664f1e3c2105c65nd echo " should be directed to the \"comp.infosystems.www.servers.unix\"" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " or \"comp.infosystems.www.servers.ms-windows\" newsgroup" && \
42af92a661a06b3cebc88d585aad75064a309d51nd echo " (as appropriate for the platform you use), where some of the" && \
42af92a661a06b3cebc88d585aad75064a309d51nd echo " Apache team lurk, in the company of many other Apache gurus" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " who should be able to help." && \
312d4192f2e32167a1e750034664f1e3c2105c65nd echo " If you think you found a bug in Apache or have a suggestion please" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " visit the bug report page at http://www.apache.org/bug_report.html" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "----------------------------------------------------------------------" && \
0203b896e484dfb877111aceffb812401d0f216and ./bindist/bin/httpd -V && \
312d4192f2e32167a1e750034664f1e3c2105c65nd echo "----------------------------------------------------------------------" \
55c79512242fd281202cd57ca18defac696440f5kess) > README.bindist
55c79512242fd281202cd57ca18defac696440f5kesscp README.bindist ../apache_$VER-$OS.README
55c79512242fd281202cd57ca18defac696440f5kess
1ce7f356a70d1d9961ec315c212e2f83a1452456nd( echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "Apache $VER binary installation" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "================================" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "To install this binary distribution you have to execute the installation" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "script \"install-bindist.sh\" in the top-level directory of the distribution." && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "The script takes the ServerRoot directory into which you want to install" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "Apache as an option. If you ommit the option the default path" && \
05ede5110427cb9dc071cc671d5aaba5d3b88c79nd echo "\"/usr/local/apache\" is used." && \
e8b603fa9ccf7b17b11b42df6d8916fd97c2331dnd echo "Make sure you have write permissions in the target directory, e.g. switch" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "to user \"root\" before you execute the script." && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "See \"README.bindist\" for further details about this distribution." && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "Please note that this distribution includes the complete Apache source code." && \
611049e38bfbaeb173d2d7fab2e44a48753436a1nd echo "Therefore you may compile Apache yourself at any time if you have a compiler" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo "installation on your system." && \
55c79512242fd281202cd57ca18defac696440f5kess echo "See \"INSTALL\" for details on how to accomplish this." && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " \
55c79512242fd281202cd57ca18defac696440f5kess) > INSTALL.bindist
55c79512242fd281202cd57ca18defac696440f5kess
d8b761beec42bbe2847bb14e3b706642c6eed47cnd( echo "#!/bin/sh" && \
d8b761beec42bbe2847bb14e3b706642c6eed47cnd echo "#" && \
d8b761beec42bbe2847bb14e3b706642c6eed47cnd echo "# Usage: install-bindist.sh [ServerRoot]" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "# This script installs the Apache binary distribution and" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "# was automatically created by binbuild.sh." && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " " && \
03a4ff9ac4c9b8009249010e7c53bb86ff05915and echo "lmkdir()" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo "{" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " path=\"\"" && \
0203b896e484dfb877111aceffb812401d0f216and echo " dirs=\`echo \$1 | sed -e 's%/% %g'\`" && \
6329991d5f023c1c4ae02cfbbda636c66e6392aand echo " mode=\$2" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo " set -- \${dirs}" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo " for d in \${dirs}" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " do" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " path=\"\${path}/\$d\"" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " if test ! -d \"\${path}\" ; then" && \
d2b809e5d72658bff23819d8b77f20e4939af541nd echo " mkdir \${path}" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " if test \$? -ne 0 ; then" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " echo \"Failed to create directory: \${path}\"" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " exit 1" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " fi" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " chmod \${mode} \${path}" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " fi" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " done" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "}" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " " && \
c023f60e35022146373e40249f0c8c8d623b6fcfnd echo "lcopy()" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo "{" && \
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd echo " from=\$1" && \
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd echo " to=\$2" && \
28c9d384aa958b321280b4ac886941dcad25396bnd echo " dmode=\$3" && \
240e1b440b19476ecaa4aa9ff8d79afef74cb14and echo " fmode=\$4" && \
240e1b440b19476ecaa4aa9ff8d79afef74cb14and echo " " && \
240e1b440b19476ecaa4aa9ff8d79afef74cb14and echo " test -d \${to} || lmkdir \${to} \${dmode}" && \
240e1b440b19476ecaa4aa9ff8d79afef74cb14and echo " (cd \${from} && tar -cf - *) | (cd \${to} && tar -xf -)" && \
240e1b440b19476ecaa4aa9ff8d79afef74cb14and echo " " && \
240e1b440b19476ecaa4aa9ff8d79afef74cb14and echo " if test \"X\${fmode}\" != X ; then" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " find \${to} -type f -print | xargs chmod \${fmode}" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " fi" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " if test \"X\${dmode}\" != X ; then" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " find \${to} -type d -print | xargs chmod \${dmode}" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " fi" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "}" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "##" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "## determine path to (optional) Perl interpreter" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "##" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "PERL=no-perl5-on-this-system" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "perls='perl5 perl'" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "path=\`echo \$PATH | sed -e 's/:/ /g'\`" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " " && \
55c79512242fd281202cd57ca18defac696440f5kess echo "for dir in \${path} ; do" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo " for pperl in \${perls} ; do" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " if test -f \"\${dir}/\${pperl}\" ; then" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " if \`\${dir}/\${pperl} -v | grep 'version 5\.' >/dev/null 2>&1\` ; then" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " PERL=\"\${dir}/\${pperl}\"" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " break" && \
55c79512242fd281202cd57ca18defac696440f5kess echo " fi" && \
03c25fb6f628ac81f2ecb637d1e7502dcee783f3nd echo " fi" && \
03c25fb6f628ac81f2ecb637d1e7502dcee783f3nd echo " done" && \
55c79512242fd281202cd57ca18defac696440f5kess echo "done" && \
8f057347a12e831fdf567da83de2fa581580298dnd echo " " && \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd echo "if [ .\$1 = . ]" && \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd echo "then" && \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd echo " SR=/usr/local/apache" && \
b05ab3ff5ab54aa22610b13d56eaba6ddfc3db60nd echo "else" && \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd echo " SR=\$1" && \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd echo "fi" && \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd echo "echo \"Installing binary distribution for platform $OS\"" && \
b95ae799514ad86a15610ad75808d7065e9847c9kess echo "echo \"into directory \$SR ...\"" && \
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd echo "lmkdir \$SR 755" && \
1ce7f356a70d1d9961ec315c212e2f83a1452456nd echo "lmkdir \$SR/proxy 750" && \
echo "lmkdir \$SR/logs 750" && \
echo "lcopy bindist/man \$SR/man 755 644" && \
echo "lcopy bindist/libexec \$SR/libexec 750 644" && \
echo "lcopy bindist/include \$SR/include 755 644" && \
echo "lcopy bindist/icons \$SR/icons 755 644" && \
echo "lcopy bindist/cgi-bin \$SR/cgi-bin 750 750" && \
echo "lcopy bindist/bin \$SR/bin 750 750" && \
echo "if [ -d \$SR/conf ]" && \
echo "then" && \
echo " echo \"[Preserving existing configuration files.]\"" && \
echo " cp bindist/conf/*.default \$SR/conf/" && \
echo "else" && \
echo " lcopy bindist/conf \$SR/conf 750 640" && \
echo "fi" && \
echo "if [ -d \$SR/htdocs ]" && \
echo "then" && \
echo " echo \"[Preserving existing htdocs directory.]\"" && \
echo "else" && \
echo " lcopy bindist/htdocs \$SR/htdocs 755 644" && \
echo "fi" && \
echo " " && \
echo "sed -e \"s;^#!/.*;#!\$PERL;\" -e \"s;\@prefix\@;\$SR;\" -e \"s;\@sbindir\@;\$SR/bin;\" \\" && \
echo " -e \"s;\@libexecdir\@;\$SR/libexec;\" -e \"s;\@includedir\@;\$SR/include;\" \\" && \
echo " -e \"s;\@sysconfdir\@;\$SR/conf;\" bindist/bin/apxs > \$SR/bin/apxs" && \
echo "sed -e \"s;^#!/.*;#!\$PERL;\" bindist/bin/dbmmanage > \$SR/bin/dbmmanage" && \
echo "sed -e \"s%/usr/local/apache%\$SR%\" \$SR/conf/httpd.conf.default > \$SR/conf/httpd.conf" && \
echo "sed -e \"s%PIDFILE=%PIDFILE=\$SR/%\" -e \"s%HTTPD=%HTTPD=\\\"\$SR/%\" -e \"s%httpd\$%httpd -d \$SR -R \$SR/libexec\\\"%\" bindist/bin/apachectl > \$SR/bin/apachectl" && \
echo " " && \
echo "echo \"Ready.\"" && \
echo "echo \" +--------------------------------------------------------+\"" && \
echo "echo \" | You now have successfully installed the Apache $VER |\"" && \
echo "echo \" | HTTP server. To verify that Apache actually works |\"" && \
echo "echo \" | correctly you should first check the (initially |\"" && \
echo "echo \" | created or preserved) configuration files: |\"" && \
echo "echo \" | |\"" && \
echo "echo \" | \$SR/conf/httpd.conf\"" && \
echo "echo \" | |\"" && \
echo "echo \" | You should then be able to immediately fire up |\"" && \
echo "echo \" | Apache the first time by running: |\"" && \
echo "echo \" | |\"" && \
echo "echo \" | \$SR/bin/apachectl start \"" &&\
echo "echo \" | |\"" && \
echo "echo \" | Thanks for using Apache. The Apache Group |\"" && \
echo "echo \" | http://www.apache.org/ |\"" && \
echo "echo \" +--------------------------------------------------------+\"" && \
echo "echo \" \"" \
) > install-bindist.sh
chmod 755 install-bindist.sh
sed -e "s%\"htdocs%\"/usr/local/apache/htdocs%" \
-e "s%\"icons%\"/usr/local/apache/icons%" \
-e "s%\"cgi-bin%\"/usr/local/apache/cgi-bin%" \
-e "s%\"proxy%\"/usr/local/apache/proxy%" \
-e "s%^ServerAdmin.*%ServerAdmin you@your.address%" \
-e "s%#ServerName.*%#ServerName localhost%" \
-e "s%Port 8080%Port 80%" \
bindist/conf/httpd.conf.default > bindist/conf/httpd.conf
cp bindist/conf/httpd.conf bindist/conf/httpd.conf.default
echo "Creating distribution archive and readme file..."
if [ ".`grep -i error build.log > /dev/null`" != . ]
then
echo "ERROR: Failed to build Apache. See \"build.log\" for details."
exit 1;
else
if [ "x$GTAR" != "x" ]
then
$GTAR -zcf ../apache_$VER-$OS.tar.gz -C .. apache_$VER
else
if [ "x$TAR" != "x" ]
then
$TAR -cf ../apache_$VER-$OS.tar -C .. apache_$VER
if [ "x$GZIP" != "x" ]
then
$GZIP ../apache_$VER-$OS.tar
fi
else
echo "ERROR: Could not find a 'tar' program!"
echo " Please execute the following commands manually:"
echo " tar -cf ../apache_$VER-$OS.tar ."
echo " gzip ../apache_$VER-$OS.tar"
fi
fi
if [ -f ../apache_$VER-$OS.tar.gz ] && [ -f ../apache_$VER-$OS.README ]
then
echo "Ready."
echo "You can find the binary archive (apache_$VER-$OS.tar.gz)"
echo "and the readme file (apache_$VER-$OS.README) in the"
echo "parent directory."
exit 0;
else
exit 1;
fi
fi