Ignore:
Timestamp:
10/27/08 13:38:07 (5 years ago)
Author:
BrainSlayer
Message:

quagga update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/quagga/missing

    r10334 r10627  
    22# Common stub for a few missing GNU programs while installing. 
    33 
    4 scriptversion=2006-05-10.23 
    5  
    6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 
     4scriptversion=2005-06-08.21 
     5 
     6# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 
    77#   Free Software Foundation, Inc. 
    88# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. 
     
    3434 
    3535run=: 
    36 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' 
    37 sed_minuso='s/.* -o \([^ ]*\).*/\1/p' 
    3836 
    3937# In the cases where this matters, `missing' is being run in the 
     
    4745msg="missing on your system" 
    4846 
    49 case $1 in 
     47case "$1" in 
    5048--run) 
    5149  # Try to run requested program, and just exit if it succeeds. 
     
    8078  autoconf     touch file \`configure' 
    8179  autoheader   touch file \`config.h.in' 
    82   autom4te     touch the output file, or create a stub one 
    8380  automake     touch all \`Makefile.in' files 
    8481  bison        create \`y.tab.[ch]', if possible, from existing .[ch] 
     
    110107# don't have it and --version was passed (most likely to detect 
    111108# the program). 
    112 case $1 in 
     109case "$1" in 
    113110  lex|yacc) 
    114111    # Not GNU programs, they don't have --version. 
     
    139136# If it does not exist, or fails to run (possibly an outdated version), 
    140137# try to emulate it. 
    141 case $1 in 
     138case "$1" in 
    142139  aclocal*) 
    143140    echo 1>&2 "\ 
     
    168165    touch_files= 
    169166    for f in $files; do 
    170       case $f in 
     167      case "$f" in 
    171168      *:*) touch_files="$touch_files "`echo "$f" | 
    172169                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;; 
     
    196193         archive site." 
    197194 
    198     file=`echo "$*" | sed -n "$sed_output"` 
    199     test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 
     195    file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` 
     196    test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` 
    200197    if test -f "$file"; then 
    201198        touch $file 
     
    218215         \`Bison' from any GNU archive site." 
    219216    rm -f y.tab.c y.tab.h 
    220     if test $# -ne 1; then 
     217    if [ $# -ne 1 ]; then 
    221218        eval LASTARG="\${$#}" 
    222         case $LASTARG in 
     219        case "$LASTARG" in 
    223220        *.y) 
    224221            SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 
    225             if test -f "$SRCFILE"; then 
     222            if [ -f "$SRCFILE" ]; then 
    226223                 cp "$SRCFILE" y.tab.c 
    227224            fi 
    228225            SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 
    229             if test -f "$SRCFILE"; then 
     226            if [ -f "$SRCFILE" ]; then 
    230227                 cp "$SRCFILE" y.tab.h 
    231228            fi 
     
    233230        esac 
    234231    fi 
    235     if test ! -f y.tab.h; then 
     232    if [ ! -f y.tab.h ]; then 
    236233        echo >y.tab.h 
    237234    fi 
    238     if test ! -f y.tab.c; then 
     235    if [ ! -f y.tab.c ]; then 
    239236        echo 'main() { return 0; }' >y.tab.c 
    240237    fi 
     
    248245         \`Flex' from any GNU archive site." 
    249246    rm -f lex.yy.c 
    250     if test $# -ne 1; then 
     247    if [ $# -ne 1 ]; then 
    251248        eval LASTARG="\${$#}" 
    252         case $LASTARG in 
     249        case "$LASTARG" in 
    253250        *.l) 
    254251            SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 
    255             if test -f "$SRCFILE"; then 
     252            if [ -f "$SRCFILE" ]; then 
    256253                 cp "$SRCFILE" lex.yy.c 
    257254            fi 
     
    259256        esac 
    260257    fi 
    261     if test ! -f lex.yy.c; then 
     258    if [ ! -f lex.yy.c ]; then 
    262259        echo 'main() { return 0; }' >lex.yy.c 
    263260    fi 
     
    271268         effect.  You can get \`Help2man' from any GNU archive site." 
    272269 
    273     file=`echo "$*" | sed -n "$sed_output"` 
    274     test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 
    275     if test -f "$file"; then 
     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 
    276275        touch $file 
    277276    else 
     
    291290         the \`GNU make' package.  Grab either from any GNU archive site." 
    292291    # The file to touch is that specified with -o ... 
    293     file=`echo "$*" | sed -n "$sed_output"` 
    294     test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 
     292    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 
    295293    if test -z "$file"; then 
    296294      # ... or it is the one specified with @setfilename ... 
    297295      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 
    298       file=`sed -n ' 
    299         /^@setfilename/{ 
    300           s/.* \([^ ]*\) *$/\1/ 
    301           p 
    302           q 
    303         }' $infile` 
     296      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` 
    304297      # ... or it is derived from the source name (dir/f.texi becomes f.info) 
    305298      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info 
     
    325318    firstarg="$1" 
    326319    if shift; then 
    327         case $firstarg in 
     320        case "$firstarg" in 
    328321        *o*) 
    329322            firstarg=`echo "$firstarg" | sed s/o//` 
     
    331324            ;; 
    332325        esac 
    333         case $firstarg in 
     326        case "$firstarg" in 
    334327        *h*) 
    335328            firstarg=`echo "$firstarg" | sed s/h//` 
Note: See TracChangeset for help on using the changeset viewer.