bindist/conf/httpd-std.conf > bindist/conf/httpd.conf
cp bindist/conf/httpd.conf bindist/conf/httpd-std.conf
-sed -e "s%$BUILD_DIR%$DEFAULT_DIR%" \
- -e "s%^#binbuild %%" \
- bindist/bin/apachectl > bindist/bin/apachectl.tmp
-mv bindist/bin/apachectl.tmp bindist/bin/apachectl
+for one_file in apachectl envvars envvars-std; do
+ sed -e "s%$BUILD_DIR%$DEFAULT_DIR%" \
+ -e "s%^#binbuild %%" \
+ bindist/bin/$one_file > bindist/bin/$one_file.tmp
+ mv bindist/bin/$one_file.tmp bindist/bin/$one_file
+done
echo "Creating distribution archive and readme file..."
then
echo "[Preserving existing envvars settings.]"
cp -p $SR/bin/envvars ./envvars.orig
+ HAD_ENVVARS=yes
+else
+ HAD_ENVVARS=no
fi
lcopy bindist/bin $SR/bin 750 750
-if [ -f ./envvars.orig ]
+if [ $HAD_ENVVARS = yes ]
then
cp -p ./envvars.orig $SR/bin/envvars
rm ./envvars.orig
sed -e "s;^#!/.*;#!$PERL;" bindist/bin/dbmmanage > $SR/bin/dbmmanage
sed -e "s%@default_dir@%$SR%" \
-e "s%^HTTPD=.*$%HTTPD=\"$SR/bin/httpd -d $SR\"%" bindist/bin/apachectl > $SR/bin/apachectl
+sed -e "s%@default_dir@%$SR%" \
+ bindist/bin/envvars-std > $SR/bin/envvars-std
+if [ $HAD_ENVVARS = no ]
+then
+ cp -p $SR/bin/envvars-std $SR/bin/envvars
+fi
echo "Ready."
echo " +--------------------------------------------------------+"
#
# the following lines are automatically uncommented for
# binary builds
-#binbuild @SHLIBPATH_VAR@='@prefix@/lib/:$@SHLIBPATH_VAR@'
+#binbuild @SHLIBPATH_VAR@="@prefix@/lib/:$@SHLIBPATH_VAR@"
#binbuild export @SHLIBPATH_VAR@
#
@OS_SPECIFIC_VARS@