~ubuntu-branches/ubuntu/jaunty/plotutils/jaunty

« back to all changes in this revision

Viewing changes to missing

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2007-05-10 19:48:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070510194854-mrr3lgwzpxd8hovo
Tags: 2.5-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Common stub for a few missing GNU programs while installing.
3
 
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
4
4
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
5
5
 
6
6
# This program is free software; you can redistribute it and/or modify
23
23
  exit 1
24
24
fi
25
25
 
 
26
# In the cases where this matters, `missing' is being run in the
 
27
# srcdir already.
 
28
if test -f configure.in; then
 
29
  configure_ac=configure.ac
 
30
else
 
31
  configure_ac=configure.in
 
32
fi
 
33
 
26
34
case "$1" in
27
35
 
28
36
  -h|--h|--he|--hel|--help)
58
66
    exit 1
59
67
    ;;
60
68
 
61
 
  aclocal)
 
69
  aclocal*)
62
70
    echo 1>&2 "\
63
71
WARNING: \`$1' is missing on your system.  You should only need it if
64
 
         you modified \`acinclude.m4' or \`configure.in'.  You might want
 
72
         you modified \`acinclude.m4' or \`$configure_ac'.  You might want
65
73
         to install the \`Automake' and \`Perl' packages.  Grab them from
66
74
         any GNU archive site."
67
75
    touch aclocal.m4
70
78
  autoconf)
71
79
    echo 1>&2 "\
72
80
WARNING: \`$1' is missing on your system.  You should only need it if
73
 
         you modified \`configure.in'.  You might want to install the
 
81
         you modified \`$configure_ac'.  You might want to install the
74
82
         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
75
83
         archive site."
76
84
    touch configure
79
87
  autoheader)
80
88
    echo 1>&2 "\
81
89
WARNING: \`$1' is missing on your system.  You should only need it if
82
 
         you modified \`acconfig.h' or \`configure.in'.  You might want
 
90
         you modified \`acconfig.h' or \`$configure_ac'.  You might want
83
91
         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
84
92
         from any GNU archive site."
85
 
    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
86
 
    if test -z "$files"; then
87
 
      files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
88
 
      test -z "$files" || files="$files.in"
89
 
    else
90
 
      files=`echo "$files" | sed -e 's/:/ /g'`
91
 
    fi
92
 
    test -z "$files" && files="config.h.in"
93
 
    touch $files
 
93
    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' $configure_ac`
 
94
    test -z "$files" && files="config.h"
 
95
    touch_files=
 
96
    for f in $files; do
 
97
      case "$f" in
 
98
      *:*) touch_files="$touch_files "`echo "$f" |
 
99
                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
 
100
      *) touch_files="$touch_files $f.in";;
 
101
      esac
 
102
    done
 
103
    touch $touch_files
94
104
    ;;
95
105
 
96
 
  automake)
 
106
  automake*)
97
107
    echo 1>&2 "\
98
108
WARNING: \`$1' is missing on your system.  You should only need it if
99
 
         you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
 
109
         you modified \`Makefile.am', \`acinclude.m4' or \`$configure_ac'.
100
110
         You might want to install the \`Automake' and \`Perl' packages.
101
111
         Grab them from any GNU archive site."
102
 
    find . -type f -name Makefile.am -print \
103
 
      | sed 's/^\(.*\).am$/touch \1.in/' \
104
 
      | sh
 
112
    find . -type f -name Makefile.am -print |
 
113
           sed 's/\.am$/.in/' |
 
114
           while read f; do touch "$f"; done
105
115
    ;;
106
116
 
107
117
  bison|yacc)