jim         96/12/03 17:48:18

  Modified:    src/helpers  CutRule GuessOS
  Log:
  cut cut in favor of awk
  
  Revision  Changes    Path
  1.2       +2 -2      apache/src/helpers/CutRule
  
  Index: CutRule
  ===================================================================
  RCS file: /export/home/cvs/apache/src/helpers/CutRule,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -C3 -r1.1 -r1.2
  *** CutRule   1996/10/23 12:56:34     1.1
  --- CutRule   1996/12/04 01:48:15     1.2
  ***************
  *** 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 |cut -d= -f2|sed 's/[   ]//g' \
  !  | tr "A-Z" "a-z"
  --- 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"
  
  
  
  1.4       +1 -1      apache/src/helpers/GuessOS
  
  Index: GuessOS
  ===================================================================
  RCS file: /export/home/cvs/apache/src/helpers/GuessOS,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -C3 -r1.3 -r1.4
  *** GuessOS   1996/12/03 17:41:22     1.3
  --- GuessOS   1996/12/04 01:48:15     1.4
  ***************
  *** 22,28 ****
    # Now test for SCO, since it is has a braindamaged uname.
    #
    # We need to work around FreeBSD 1.1.5.1 
  ! SCO=`uname -X 2>/dev/null | grep "^Release" | cut -f3 -d' '`
    if [ "x$SCO" != "x" ]; then
        case "$SCO" in
        3\.2v4\.2)
  --- 22,28 ----
    # Now test for SCO, since it is has a braindamaged uname.
    #
    # We need to work around FreeBSD 1.1.5.1 
  ! SCO=`uname -X 2>/dev/null | grep "^Release" | awk '{print $3}'`
    if [ "x$SCO" != "x" ]; then
        case "$SCO" in
        3\.2v4\.2)
  
  
  

Reply via email to