PolarDB-for-PostgreSQL

Форк
0
54 строки · 1.3 Кб
1
#! /bin/sh
2

3
# config/missing
4

5
# This is *not* the GNU `missing' script, although it is similar in
6
# concept. You can call it from the makefiles to get consistent
7
# behavior when certain utility programs are missing.
8

9
case $1 in
10
    flex|bison)
11
        # `missing flex|bison <input> <output>'
12
        input=$2
13
        output=$3
14
        if test -f "$output"; then
15
            echo "\
16
***
17
WARNING: \`$1' is missing on your system. You should only need it
18
if you changed the file \`$input'; these changes will not take effect.
19
You can get $1 from a GNU mirror site.
20
***" >&2
21
            echo "touch $output"
22
            touch "$output"
23
            exit 0
24
        else # ! test -f $output
25
            echo "\
26
***
27
ERROR: \`$1' is missing on your system. It is needed to create the
28
file \`$output'. You can either get $1 from a GNU mirror site
29
or download an official distribution of PostgreSQL, which contains
30
pre-packaged $1 output.
31
***" >&2
32
            exit 1
33
        fi
34
        ;;
35

36
    perl)
37
        # `missing perl'
38
        echo "\
39
***
40
ERROR: Perl is missing on your system. It is needed unless you are building
41
from an unmodified official distribution of PostgreSQL.
42
***" >&2
43
        exit 1
44
        ;;
45

46
    *)
47
        # `missing something-or-other'
48
        echo "\
49
***
50
ERROR: \`$1' is missing on your system.
51
***" >&2
52
        exit 1
53
        ;;
54
esac
55

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.