httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Fielding <field...@hyperreal.com>
Subject cvs commit: apache/src/helpers CutRule
Date Fri, 18 Apr 1997 02:47:08 GMT
fielding    97/04/17 19:47:07

  Modified:    src/helpers  CutRule
  Log:
  Fixed problem where the egrep would pick up rules that
  were commented-out.
  
  Reviewed by: Dean Gaudet, Randy Terbush, Jim Jagielski
  
  Revision  Changes    Path
  1.3       +2 -1      apache/src/helpers/CutRule
  
  Index: CutRule
  ===================================================================
  RCS file: /export/home/cvs/apache/src/helpers/CutRule,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -C3 -r1.2 -r1.3
  *** CutRule	1996/12/04 01:48:15	1.2
  --- CutRule	1997/04/18 02:47:07	1.3
  ***************
  *** 2,6 ****
    # note that there is a tab and a space in the character groups.
    # Map to lowercase to make tests easier
    
  ! egrep "Rule[	 ]+$1[	 ]*=" $2 | awk 'BEGIN {FS="="}{print $2}' | \
    sed 's/[	 ]//g' | tr "A-Z" "a-z"
  --- 2,7 ----
    # note that there is a tab and a space in the character groups.
    # Map to lowercase to make tests easier
    
  ! egrep "^[	 ]*Rule[	 ]+$1[	 ]*=" $2 | \
  ! awk 'BEGIN {FS="="}{print $2}' | \
    sed 's/[	 ]//g' | tr "A-Z" "a-z"
  
  
  

Mime
View raw message