httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject [PATCH] Allow consistant use of whitespace in Configuration
Date Mon, 12 May 1997 12:13:51 GMT
Most doc's just say to 'remove the leading '#'' from Configuration...

Index: apache/src/Configure
===================================================================
RCS file: /export/home/cvs/apache/src/Configure,v
retrieving revision 1.95
diff -c -r1.95 Configure
*** Configure	1997/05/10 21:53:53	1.95
--- Configure	1997/05/12 12:12:45
***************
*** 45,56 ****
  fi
  
  # First, strip comments and blank lines and then change Rules to comments
  
  sed 's/#.*//' $file | \
   sed '/^[ 	]*$/d' | \
   sed 's/[ 	]*$//' | \
!  sed 's/^Rule[ 	]*/##Rule:/' \
!  > $tmpfile
  
  # Check for syntax errors...
  
--- 45,58 ----
  fi
  
  # First, strip comments and blank lines and then change Rules to comments
+ # and then remove whitespace before Module declarations
  
  sed 's/#.*//' $file | \
   sed '/^[ 	]*$/d' | \
   sed 's/[ 	]*$//' | \
!  sed 's/^Rule[ 	]*/##Rule:/' | \
!  sed 's/^[ 	]*Module/Module/' | \
!  sed 's/^[        ]*%Module/%Module/' > $tmpfile
  
  # Check for syntax errors...
  
***************
*** 494,500 ****
  # and set a "safe" optimization level
  #
  
! if grep "CC=" Makefile > /dev/null; then
      CC=""	# clear it just in case
  else
      if [ "x$CC" = "x" ]; then
--- 496,502 ----
  # and set a "safe" optimization level
  #
  
! if egrep "^CC[ 	]*=" Makefile > /dev/null; then
      CC=""	# clear it just in case
  else
      if [ "x$CC" = "x" ]; then
***************
*** 512,518 ****
  #
  # Ditto for optimization
  #
! if  grep "OPTIM=" Makefile > /dev/null; then
      OPTIM=""	# ditto
  else
      if [ "x$OPTIM" = "x" ]; then
--- 514,520 ----
  #
  # Ditto for optimization
  #
! if  egrep "^OPTIM[ 	]*=" Makefile > /dev/null; then
      OPTIM=""	# ditto
  else
      if [ "x$OPTIM" = "x" ]; then
-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message