httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apache-1.3/src/helpers findprg.sh
Date Mon, 08 Jun 1998 20:36:17 GMT
dgaudet     98/06/08 13:36:17

  Modified:    src/helpers findprg.sh
  Log:
  tweak to ralf's recent change which looks for gawk/nawk... it did things
  in the wrong order -- so it would still use awk if it was in an earlier
  path rather than preferring gawk/nawk.
  
  PR:		2319
  Submitted by:	Dave Dykstra <dwd@bell-labs.com>
  
  Revision  Changes    Path
  1.2       +9 -8      apache-1.3/src/helpers/findprg.sh
  
  Index: findprg.sh
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/helpers/findprg.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- findprg.sh	1998/06/05 07:15:19	1.1
  +++ findprg.sh	1998/06/08 20:36:16	1.2
  @@ -43,14 +43,15 @@
   fi
   rm -f $testfile
   
  -#   iterate over paths
  -for path in `echo $pathlist |\
  -             sed -e 's/^:/.:/' \
  -                 -e 's/::/:.:/g' \
  -                 -e 's/:$/:./' \
  -                 -e 's/:/ /g'`; do
  -    #   iterate over names
  -    for name in $namelist; do
  +paths="`echo $pathlist |\
  +	 sed -e 's/^:/.:/' \
  +	     -e 's/::/:.:/g' \
  +	     -e 's/:$/:./' \
  +	     -e 's/:/ /g'`"
  +#   iterate over names
  +for name in $namelist; do
  +    #   iterate over paths
  +    for path in $paths; do
           if [ $minusx "$path/$name" ] && [ ! -d "$path/$name" ]; then
               if [ "$silent" != "yes" ]; then
                   echo "$path/$name"
  
  
  

Mime
View raw message