Changeset 70c2d86 in mod_gnutls for config/missing


Ignore:
Timestamp:
Jan 11, 2013, 12:55:20 AM (8 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, upstream
Children:
3f5c713, ec06980
Parents:
3e94bd3
Message:

Imported Upstream version 0.3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config/missing

    r3e94bd3 r70c2d86  
    22# Common stub for a few missing GNU programs while installing.
    33
    4 scriptversion=2005-02-08.22
    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.
     
    2020# You should have received a copy of the GNU General Public License
    2121# along with this program; if not, write to the Free Software
    22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    23 # 02111-1307, USA.
     22# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
     23# 02110-1301, USA.
    2424
    2525# As a special exception to the GNU General Public License, if you
     
    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
    299306    fi
     307    # If the file does not exist, the user really needs makeinfo;
     308    # let's fail without touching anything.
     309    test -f $file || exit 1
    300310    touch $file
    301311    ;;
     
    315325    firstarg="$1"
    316326    if shift; then
    317         case "$firstarg" in
     327        case $firstarg in
    318328        *o*)
    319329            firstarg=`echo "$firstarg" | sed s/o//`
     
    321331            ;;
    322332        esac
    323         case "$firstarg" in
     333        case $firstarg in
    324334        *h*)
    325335            firstarg=`echo "$firstarg" | sed s/h//`
Note: See TracChangeset for help on using the changeset viewer.