~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to config/missing

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# This is *not* the GNU `missing' script, although it is similar in
 
4
# concept. You can call it from the makefiles to get consistent
 
5
# behavior when certain utility programs are missing.
 
6
 
 
7
case $1 in
 
8
    flex|bison)
 
9
        # `missing flex|bison <input> <output>'
 
10
        input=$2
 
11
        output=$3
 
12
        if test -f "$output"; then
 
13
            echo "\
 
14
***
 
15
WARNING: \`$1' is missing on your system. You should only need it
 
16
if you changed the file \`$input'; these changes will not take effect.
 
17
You can get $1 from a GNU mirror site.
 
18
***"
 
19
            echo "touch $output"
 
20
            touch "$output"
 
21
            exit 0
 
22
        else # ! test -f $output
 
23
            echo "\
 
24
***
 
25
ERROR: \`$1' is missing on your system. It is needed to create the
 
26
file \`$output'. You can either get $1 from a GNU mirror site
 
27
or download an official distribution of PostgreSQL, which contains
 
28
pre-packaged $1 output.
 
29
***"
 
30
            exit 1
 
31
        fi
 
32
        ;;
 
33
esac