USER="`build/buildinfo.sh -n %u@%h%d`"
fi
-if [ ! -f ./ABOUT_APACHE ]
-then
+if [ ! -f ./ABOUT_APACHE ]; then
echo "ERROR: The current directory contains no valid Apache distribution."
echo "Please change the directory to the top level directory of a freshly"
echo "unpacked Apache 2.0 source distribution and re-execute the script"
exit 1;
fi
-if [ -d ./CVS ]
-then
+if [ -d ./CVS ]; then
echo "ERROR: The current directory is a CVS checkout of Apache."
echo "Only a standard Apache 2.0 source distribution should be used to"
echo "create a binary distribution."
echo "[EOF]" \
) 2>&1 | tee build.log
-if [ ! -f ./bindist/bin/httpd ]
-then
+if [ ! -f ./bindist/bin/httpd ]; then
echo "ERROR: Failed to build Apache. See \"build.log\" for details."
exit 1;
fi
echo "Creating distribution archive and readme file..."
-if [ ".`grep -i error build.log > /dev/null`" != . ]
-then
+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$TAR" != "x" ]
- then
+ if [ "x$TAR" != "x" ]; then
case "x$OS" in
x*os390*) $TAR -cfU ../httpd-$VER-$OS.tar -C .. httpd-$VER;;
*) (cd .. && $TAR -cf httpd-$VER-$OS.tar httpd-$VER);;
esac
- if [ "x$GZIP" != "x" ]
- then
+ if [ "x$GZIP" != "x" ]; then
$GZIP -9 ../httpd-$VER-$OS.tar
else
echo "WARNING: Could not find a 'gzip' program!"
echo " gzip -9 ../httpd-$VER-$OS.tar"
fi
- if [ -f ../httpd-$VER-$OS.tar.gz ] && [ -f ../httpd-$VER-$OS.README ]
- then
+ if [ -f ../httpd-$VER-$OS.tar.gz ] && [ -f ../httpd-$VER-$OS.README ]; then
echo "Ready."
echo "You can find the binary archive (httpd-$VER-$OS.tar.gz)"
echo "and the readme file (httpd-$VER-$OS.README) in the"