Changeset 333

Show
Ignore:
Timestamp:
07/06/07 22:15:46 (1 year ago)
Author:
florida
Message:

version initiale wifidog-1.1.3-rc1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wifidog/wifidog-client/config/depcomp

    r218 r333  
    22# depcomp - compile a program generating dependencies as side-effects 
    33 
    4 scriptversion=2005-07-09.11 
    5  
    6 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 
     4scriptversion=2006-10-15.18 
     5 
     6# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software 
     7# Foundation, Inc. 
    78 
    89# This program is free software; you can redistribute it and/or modify 
     
    9293## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like 
    9394## it if -MD -MP comes after the -MF stuff.  Hmm. 
    94   "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" 
     95## Unfortunately, FreeBSD c89 acceptance of flags depends upon 
     96## the command line argument order; so add the flags where they 
     97## appear in depend2.am.  Note that the slowdown incurred here 
     98## affects only configure: in makefiles, %FASTDEP% shortcuts this. 
     99  for arg 
     100  do 
     101    case $arg in 
     102    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; 
     103    *)  set fnord "$@" "$arg" ;; 
     104    esac 
     105    shift # fnord 
     106    shift # $arg 
     107  done 
     108  "$@" 
    95109  stat=$? 
    96110  if test $stat -eq 0; then : 
     
    277291  ;; 
    278292 
     293hp2) 
     294  # The "hp" stanza above does not work with aCC (C++) and HP's ia64 
     295  # compilers, which have integrated preprocessors.  The correct option 
     296  # to use with these is +Maked; it writes dependencies to a file named 
     297  # 'foo.d', which lands next to the object file, wherever that 
     298  # happens to be. 
     299  # Much of this is similar to the tru64 case; see comments there. 
     300  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 
     301  test "x$dir" = "x$object" && dir= 
     302  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 
     303  if test "$libtool" = yes; then 
     304    tmpdepfile1=$dir$base.d 
     305    tmpdepfile2=$dir.libs/$base.d 
     306    "$@" -Wc,+Maked 
     307  else 
     308    tmpdepfile1=$dir$base.d 
     309    tmpdepfile2=$dir$base.d 
     310    "$@" +Maked 
     311  fi 
     312  stat=$? 
     313  if test $stat -eq 0; then : 
     314  else 
     315     rm -f "$tmpdepfile1" "$tmpdepfile2" 
     316     exit $stat 
     317  fi 
     318 
     319  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" 
     320  do 
     321    test -f "$tmpdepfile" && break 
     322  done 
     323  if test -f "$tmpdepfile"; then 
     324    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" 
     325    # Add `dependent.h:' lines. 
     326    sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" 
     327  else 
     328    echo "#dummy" > "$depfile" 
     329  fi 
     330  rm -f "$tmpdepfile" "$tmpdepfile2" 
     331  ;; 
     332 
    279333tru64) 
    280334   # The Tru64 compiler uses -MD to generate dependencies as a side 
     
    289343   if test "$libtool" = yes; then 
    290344      # With Tru64 cc, shared objects can also be used to make a 
    291       # static library.  This mecanism is used in libtool 1.4 series to 
     345      # static library.  This mechanism is used in libtool 1.4 series to 
    292346      # handle both shared and static libraries in a single compilation. 
    293347      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. 
     
    295349      # With libtool 1.5 this exception was removed, and libtool now 
    296350      # generates 2 separate objects for the 2 libraries.  These two 
    297       # compilations output dependencies in in $dir.libs/$base.o.d and 
     351      # compilations output dependencies in $dir.libs/$base.o.d and 
    298352      # in $dir$base.o.d.  We have to check for both files, because 
    299353      # one of the two compilations can be disabled.  We should prefer 
  • wifidog/wifidog-client/config/install-sh

    r218 r333  
    22# install - install a program, script, or datafile 
    33 
    4 scriptversion=2005-05-14.22 
     4scriptversion=2006-10-14.15 
    55 
    66# This originates from X11R5 (mit/util/scripts/install.sh), which was 
     
    4040# 
    4141# This script is compatible with the BSD install script, but was written 
    42 # from scratch.  It can only install one file at a time, a restriction 
    43 # shared with many OS's install programs. 
     42# from scratch. 
     43 
     44nl=' 
     45
     46IFS=" ""        $nl" 
    4447 
    4548# set DOITPROG to echo to test this script 
     
    4750# Don't use :- since 4.3BSD and earlier shells don't like it. 
    4851doit="${DOITPROG-}" 
    49  
    50 # put in absolute paths if you don't have them in your path; or use env. vars. 
     52if test -z "$doit"; then 
     53  doit_exec=exec 
     54else 
     55  doit_exec=$doit 
     56fi 
     57 
     58# Put in absolute file names if you don't have them in your path; 
     59# or use environment vars. 
    5160 
    5261mvprog="${MVPROG-mv}" 
     
    5968mkdirprog="${MKDIRPROG-mkdir}" 
    6069 
    61 chmodcmd="$chmodprog 0755" 
     70posix_glob= 
     71posix_mkdir= 
     72 
     73# Desired mode of installed file. 
     74mode=0755 
     75 
     76chmodcmd=$chmodprog 
    6277chowncmd= 
    6378chgrpcmd= 
     
    96111" 
    97112 
    98 while test -n "$1"; do 
     113while test $# -ne 0; do 
    99114  case $1 in 
    100115    -c) shift 
     
    112127    --help) echo "$usage"; exit $?;; 
    113128 
    114     -m) chmodcmd="$chmodprog $2" 
    115         shift 
    116         shift 
     129    -m) mode=$2 
     130        shift 
     131        shift 
     132        case $mode in 
     133          *' '* | *'    '* | *' 
     134'*        | *'*'* | *'?'* | *'['*) 
     135            echo "$0: invalid mode: $mode" >&2 
     136            exit 1;; 
     137        esac 
    117138        continue;; 
    118139 
     
    137158    --version) echo "$0 $scriptversion"; exit $?;; 
    138159 
    139     *)  # When -d is used, all remaining arguments are directories to create. 
    140         # When -t is used, the destination is already specified. 
    141         test -n "$dir_arg$dstarg" && break 
    142         # Otherwise, the last argument is the destination.  Remove it from $@. 
    143         for arg 
    144         do 
    145           if test -n "$dstarg"; then 
    146             # $@ is not empty: it contains at least $arg. 
    147             set fnord "$@" "$dstarg" 
    148             shift # fnord 
    149           fi 
    150           shift # arg 
    151           dstarg=$arg 
    152         done 
     160    --) shift 
    153161        break;; 
     162 
     163    -*) echo "$0: invalid option: $1" >&2 
     164        exit 1;; 
     165 
     166    *)  break;; 
    154167  esac 
    155168done 
    156169 
    157 if test -z "$1"; then 
     170if test $# -ne 0 && test -z "$dir_arg$dstarg"; then 
     171  # When -d is used, all remaining arguments are directories to create. 
     172  # When -t is used, the destination is already specified. 
     173  # Otherwise, the last argument is the destination.  Remove it from $@. 
     174  for arg 
     175  do 
     176    if test -n "$dstarg"; then 
     177      # $@ is not empty: it contains at least $arg. 
     178      set fnord "$@" "$dstarg" 
     179      shift # fnord 
     180    fi 
     181    shift # arg 
     182    dstarg=$arg 
     183  done 
     184fi 
     185 
     186if test $# -eq 0; then 
    158187  if test -z "$dir_arg"; then 
    159188    echo "$0: no input file specified." >&2 
     
    165194fi 
    166195 
     196if test -z "$dir_arg"; then 
     197  trap '(exit $?); exit' 1 2 13 15 
     198 
     199  # Set umask so as not to create temps with too-generous modes. 
     200  # However, 'strip' requires both read and write access to temps. 
     201  case $mode in 
     202    # Optimize common cases. 
     203    *644) cp_umask=133;; 
     204    *755) cp_umask=22;; 
     205 
     206    *[0-7]) 
     207      if test -z "$stripcmd"; then 
     208        u_plus_rw= 
     209      else 
     210        u_plus_rw='% 200' 
     211      fi 
     212      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 
     213    *) 
     214      if test -z "$stripcmd"; then 
     215        u_plus_rw= 
     216      else 
     217        u_plus_rw=,u+rw 
     218      fi 
     219      cp_umask=$mode$u_plus_rw;; 
     220  esac 
     221fi 
     222 
    167223for src 
    168224do 
     
    174230  if test -n "$dir_arg"; then 
    175231    dst=$src 
    176     src= 
    177  
    178     if test -d "$dst"; then 
    179       mkdircmd=: 
    180       chmodcmd= 
    181     else 
    182       mkdircmd=$mkdirprog 
    183     fi 
     232    dstdir=$dst 
     233    test -d "$dstdir" 
     234    dstdir_status=$? 
    184235  else 
     236 
    185237    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command 
    186238    # might cause directories to be created, which would be especially bad 
     
    209261        exit 1 
    210262      fi 
    211       dst=$dst/`basename "$src"` 
     263      dstdir=$dst 
     264      dst=$dstdir/`basename "$src"` 
     265      dstdir_status=0 
     266    else 
     267      # Prefer dirname, but fall back on a substitute if dirname fails. 
     268      dstdir=` 
     269        (dirname "$dst") 2>/dev/null || 
     270        expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 
     271             X"$dst" : 'X\(//\)[^/]' \| \ 
     272             X"$dst" : 'X\(//\)$' \| \ 
     273             X"$dst" : 'X\(/\)' \| . 2>/dev/null || 
     274        echo X"$dst" | 
     275            sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 
     276                   s//\1/ 
     277                   q 
     278                 } 
     279                 /^X\(\/\/\)[^/].*/{ 
     280                   s//\1/ 
     281                   q 
     282                 } 
     283                 /^X\(\/\/\)$/{ 
     284                   s//\1/ 
     285                   q 
     286                 } 
     287                 /^X\(\/\).*/{ 
     288                   s//\1/ 
     289                   q 
     290                 } 
     291                 s/.*/./; q' 
     292      ` 
     293 
     294      test -d "$dstdir" 
     295      dstdir_status=$? 
    212296    fi 
    213297  fi 
    214298 
    215   # This sed command emulates the dirname command. 
    216   dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` 
    217  
    218   # Make sure that the destination directory exists. 
    219  
    220   # Skip lots of stat calls in the usual case. 
    221   if test ! -d "$dstdir"; then 
    222     defaultIFS=' 
    223          ' 
    224     IFS="${IFS-$defaultIFS}" 
    225  
    226     oIFS=$IFS 
    227     # Some sh's can't handle IFS=/ for some reason. 
    228     IFS='%' 
    229     set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` 
    230     shift 
    231     IFS=$oIFS 
    232  
    233     pathcomp= 
    234  
    235     while test $# -ne 0 ; do 
    236       pathcomp=$pathcomp$1 
     299  obsolete_mkdir_used=false 
     300 
     301  if test $dstdir_status != 0; then 
     302    case $posix_mkdir in 
     303      '') 
     304        # Create intermediate dirs using mode 755 as modified by the umask. 
     305        # This is like FreeBSD 'install' as of 1997-10-28. 
     306        umask=`umask` 
     307        case $stripcmd.$umask in 
     308          # Optimize common cases. 
     309          *[2367][2367]) mkdir_umask=$umask;; 
     310          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; 
     311 
     312          *[0-7]) 
     313            mkdir_umask=`expr $umask + 22 \ 
     314              - $umask % 100 % 40 + $umask % 20 \ 
     315              - $umask % 10 % 4 + $umask % 2 
     316            `;; 
     317          *) mkdir_umask=$umask,go-w;; 
     318        esac 
     319 
     320        # With -d, create the new directory with the user-specified mode. 
     321        # Otherwise, rely on $mkdir_umask. 
     322        if test -n "$dir_arg"; then 
     323          mkdir_mode=-m$mode 
     324        else 
     325          mkdir_mode= 
     326        fi 
     327 
     328        posix_mkdir=false 
     329        case $umask in 
     330          *[123567][0-7][0-7]) 
     331            # POSIX mkdir -p sets u+wx bits regardless of umask, which 
     332            # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 
     333            ;; 
     334          *) 
     335            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 
     336            trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 
     337 
     338            if (umask $mkdir_umask && 
     339                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 
     340            then 
     341              if test -z "$dir_arg" || { 
     342                   # Check for POSIX incompatibilities with -m. 
     343                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 
     344                   # other-writeable bit of parent directory when it shouldn't. 
     345                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 
     346                   ls_ld_tmpdir=`ls -ld "$tmpdir"` 
     347                   case $ls_ld_tmpdir in 
     348                     d????-?r-*) different_mode=700;; 
     349                     d????-?--*) different_mode=755;; 
     350                     *) false;; 
     351                   esac && 
     352                   $mkdirprog -m$different_mode -p -- "$tmpdir" && { 
     353                     ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 
     354                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 
     355                   } 
     356                 } 
     357              then posix_mkdir=: 
     358              fi 
     359              rmdir "$tmpdir/d" "$tmpdir" 
     360            else 
     361              # Remove any dirs left behind by ancient mkdir implementations. 
     362              rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null 
     363            fi 
     364            trap '' 0;; 
     365        esac;; 
     366    esac 
     367 
     368    if 
     369      $posix_mkdir && ( 
     370        umask $mkdir_umask && 
     371        $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 
     372      ) 
     373    then : 
     374    else 
     375 
     376      # The umask is ridiculous, or mkdir does not conform to POSIX, 
     377      # or it failed possibly due to a race condition.  Create the 
     378      # directory the slow way, step by step, checking for races as we go. 
     379 
     380      case $dstdir in 
     381        /*) prefix=/ ;; 
     382        -*) prefix=./ ;; 
     383        *)  prefix= ;; 
     384      esac 
     385 
     386      case $posix_glob in 
     387        '') 
     388          if (set -f) 2>/dev/null; then 
     389            posix_glob=true 
     390          else 
     391            posix_glob=false 
     392          fi ;; 
     393      esac 
     394 
     395      oIFS=$IFS 
     396      IFS=/ 
     397      $posix_glob && set -f 
     398      set fnord $dstdir 
    237399      shift 
    238       if test ! -d "$pathcomp"; then 
    239         $mkdirprog "$pathcomp" 
    240         # mkdir can fail with a `File exist' error in case several 
    241         # install-sh are creating the directory concurrently.  This 
    242         # is OK. 
    243         test -d "$pathcomp" || exit 
     400      $posix_glob && set +f 
     401      IFS=$oIFS 
     402 
     403      prefixes= 
     404 
     405      for d 
     406      do 
     407        test -z "$d" && continue 
     408 
     409        prefix=$prefix$d 
     410        if test -d "$prefix"; then 
     411          prefixes= 
     412        else 
     413          if $posix_mkdir; then 
     414            (umask=$mkdir_umask && 
     415             $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 
     416            # Don't fail if two instances are running concurrently. 
     417            test -d "$prefix" || exit 1 
     418          else 
     419            case $prefix in 
     420              *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 
     421              *) qprefix=$prefix;; 
     422            esac 
     423            prefixes="$prefixes '$qprefix'" 
     424          fi 
     425        fi 
     426        prefix=$prefix/ 
     427      done 
     428 
     429      if test -n "$prefixes"; then 
     430        # Don't fail if two instances are running concurrently. 
     431        (umask $mkdir_umask && 
     432         eval "\$doit_exec \$mkdirprog $prefixes") || 
     433          test -d "$dstdir" || exit 1 
     434        obsolete_mkdir_used=true 
    244435      fi 
    245       pathcomp=$pathcomp/ 
    246     done 
     436    fi 
    247437  fi 
    248438 
    249439  if test -n "$dir_arg"; then 
    250     $doit $mkdircmd "$dst" \ 
    251       && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ 
    252       && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ 
    253       && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ 
    254       && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } 
    255  
     440    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && 
     441    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && 
     442    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || 
     443      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 
    256444  else 
    257     dstfile=`basename "$dst"` 
    258445 
    259446    # Make a couple of temp file names in the proper directory. 
     
    263450    # Trap to clean up those temp files at exit. 
    264451    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 
    265     trap '(exit $?); exit' 1 2 13 15 
    266452 
    267453    # Copy the file name to the temp name. 
    268     $doit $cpprog "$src" "$dsttmp" && 
     454    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 
    269455 
    270456    # and set any options; do chmod last to preserve setuid bits. 
     
    277463      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ 
    278464      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ 
    279       && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && 
     465      && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && 
    280466 
    281467    # Now rename the file to the real destination. 
    282     { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ 
     468    { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \ 
    283469      || { 
    284470           # The rename failed, perhaps because mv can't rename something else 
     
    292478           # file should still install successfully. 
    293479           { 
    294              if test -f "$dstdir/$dstfile"; then 
    295                $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ 
    296                || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ 
     480             if test -f "$dst"; then 
     481               $doit $rmcmd -f "$dst" 2>/dev/null \ 
     482               || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \ 
     483                     && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\ 
    297484               || { 
    298                  echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 
     485                 echo "$0: cannot unlink or rename $dst" >&2 
    299486                 (exit 1); exit 1 
    300487               } 
     
    305492 
    306493           # Now rename the file to the real destination. 
    307            $doit $mvcmd "$dsttmp" "$dstdir/$dstfile
     494           $doit $mvcmd "$dsttmp" "$dst
    308495         } 
    309     } 
    310   fi || { (exit 1); exit 1; } 
     496    } || exit 1 
     497 
     498    trap '' 0 
     499  fi 
    311500done 
    312  
    313 # The final little trick to "correctly" pass the exit status to the exit trap. 
    314 { 
    315   (exit 0); exit 0 
    316 } 
    317501 
    318502# Local variables: 
  • wifidog/wifidog-client/config/missing

    r218 r333  
    22# Common stub for a few missing GNU programs while installing. 
    33 
    4 scriptversion=2005-06-08.21 
    5  
    6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 
     4scriptversion=2006-05-10.23 
     5 
     6# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 
    77#   Free Software Foundation, Inc. 
    88# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. 
     
    3434 
    3535run=: 
     36sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' 
     37sed_minuso='s/.* -o \([^ ]*\).*/\1/p' 
    3638 
    3739# In the cases where this matters, `missing' is being run in the 
     
    4547msg="missing on your system" 
    4648 
    47 case "$1" in 
     49case $1 in 
    4850--run) 
    4951  # Try to run requested program, and just exit if it succeeds. 
     
    7880  autoconf     touch file \`configure' 
    7981  autoheader   touch file \`config.h.in' 
     82  autom4te     touch the output file, or create a stub one 
    8083  automake     touch all \`Makefile.in' files 
    8184  bison        create \`y.tab.[ch]', if possible, from existing .[ch] 
     
    107110# don't have it and --version was passed (most likely to detect 
    108111# the program). 
    109 case "$1" in 
     112case $1 in 
    110113  lex|yacc) 
    111114    # Not GNU programs, they don't have --version. 
     
    136139# If it does not exist, or fails to run (possibly an outdated version), 
    137140# try to emulate it. 
    138 case "$1" in 
     141case $1 in 
    139142  aclocal*) 
    140143    echo 1>&2 "\ 
     
    165168    touch_files= 
    166169    for f in $files; do 
    167       case "$f" in 
     170      case $f in 
    168171      *:*) touch_files="$touch_files "`echo "$f" | 
    169172                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;; 
     
    193196         archive site." 
    194197 
    195     file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'
    196     test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'
     198    file=`echo "$*" | sed -n "$sed_output"
     199    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"
    197200    if test -f "$file"; then 
    198201        touch $file 
     
    215218         \`Bison' from any GNU archive site." 
    216219    rm -f y.tab.c y.tab.h 
    217     if [ $# -ne 1 ]; then 
     220    if test $# -ne 1; then 
    218221        eval LASTARG="\${$#}" 
    219         case "$LASTARG" in 
     222        case $LASTARG in 
    220223        *.y) 
    221224            SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 
    222             if [ -f "$SRCFILE" ]; then 
     225            if test -f "$SRCFILE"; then 
    223226                 cp "$SRCFILE" y.tab.c 
    224227            fi 
    225228            SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 
    226             if [ -f "$SRCFILE" ]; then 
     229            if test -f "$SRCFILE"; then 
    227230                 cp "$SRCFILE" y.tab.h 
    228231            fi 
     
    230233        esac 
    231234    fi 
    232     if [ ! -f y.tab.h ]; then 
     235    if test ! -f y.tab.h; then 
    233236        echo >y.tab.h 
    234237    fi 
    235     if [ ! -f y.tab.c ]; then 
     238    if test ! -f y.tab.c; then 
    236239        echo 'main() { return 0; }' >y.tab.c 
    237240    fi 
     
    245248         \`Flex' from any GNU archive site." 
    246249    rm -f lex.yy.c 
    247     if [ $# -ne 1 ]; then 
     250    if test $# -ne 1; then 
    248251        eval LASTARG="\${$#}" 
    249         case "$LASTARG" in 
     252        case $LASTARG in 
    250253        *.l) 
    251254            SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 
    252             if [ -f "$SRCFILE" ]; then 
     255            if test -f "$SRCFILE"; then 
    253256                 cp "$SRCFILE" lex.yy.c 
    254257            fi 
     
    256259        esac 
    257260    fi 
    258     if [ ! -f lex.yy.c ]; then 
     261    if test ! -f lex.yy.c; then 
    259262        echo 'main() { return 0; }' >lex.yy.c 
    260263    fi 
     
    268271         effect.  You can get \`Help2man' from any GNU archive site." 
    269272 
    270     file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 
    271     if test -z "$file"; then 
    272         file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` 
    273     fi 
    274     if [ -f "$file" ]; then 
     273    file=`echo "$*" | sed -n "$sed_output"` 
     274    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 
     275    if test -f "$file"; then 
    275276        touch $file 
    276277    else 
     
    290291         the \`GNU make' package.  Grab either from any GNU archive site." 
    291292    # The file to touch is that specified with -o ... 
    292     file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 
     293    file=`echo "$*" | sed -n "$sed_output"` 
     294    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 
    293295    if test -z "$file"; then 
    294296      # ... or it is the one specified with @setfilename ... 
    295297      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 
    296       file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` 
     298      file=`sed -n ' 
     299        /^@setfilename/{ 
     300          s/.* \([^ ]*\) *$/\1/ 
     301          p 
     302          q 
     303        }' $infile` 
    297304      # ... or it is derived from the source name (dir/f.texi becomes f.info) 
    298305      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info 
     
    318325    firstarg="$1" 
    319326    if shift; then 
    320         case "$firstarg" in 
     327        case $firstarg in 
    321328        *o*) 
    322329            firstarg=`echo "$firstarg" | sed s/o//` 
     
    324331            ;; 
    325332        esac 
    326         case "$firstarg" in 
     333        case $firstarg in 
    327334        *h*) 
    328335            firstarg=`echo "$firstarg" | sed s/h//`