|
| 1 | +#! /bin/sh |
| 2 | +# |
| 3 | +# The contents of this file are subject to the Initial |
| 4 | +# Developer's Public License Version 1.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the |
| 6 | +# License. You may obtain a copy of the License at |
| 7 | +# http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. |
| 8 | +# |
| 9 | +# Software distributed under the License is distributed AS IS, |
| 10 | +# WITHOUT WARRANTY OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing rights |
| 12 | +# and limitations under the License. |
| 13 | +# |
| 14 | +# The Original Code was created by Mark O'Donohue |
| 15 | +# for the Firebird Open Source RDBMS project. |
| 16 | +# |
| 17 | +# Copyright (c) Mark O'Donohue <[email protected]> |
| 18 | +# and all contributors signed below. |
| 19 | +# |
| 20 | +# All Rights Reserved. |
| 21 | +# Contributor(s): ______________________________________. |
| 22 | +# |
| 23 | + |
| 24 | +# stored configuration values |
| 25 | + |
| 26 | +fb_install_prefix=@prefix@ |
| 27 | + |
| 28 | +fb_bindir=@FB_BINDIR@ |
| 29 | +fb_libdir=@FB_LIBDIR@ |
| 30 | +fb_incdir=@FB_INCDIR@ |
| 31 | +fb_sbindir=@FB_SBINDIR@ |
| 32 | +fb_confdir=@FB_CONFDIR@ |
| 33 | +fb_docdir=@FB_DOCDIR@ |
| 34 | +fb_sampledir=@FB_SAMPLEDIR@ |
| 35 | +fb_sampledbdir=@FB_SAMPLEDBDIR@ |
| 36 | +fb_intldir=@FB_INTLDIR@ |
| 37 | +fb_miscdir=@FB_MISCDIR@ |
| 38 | +fb_securedbdir=@FB_SECDBDIR@ |
| 39 | +fb_msgdir=@FB_MSGDIR@ |
| 40 | +fb_logdir=@FB_LOGDIR@ |
| 41 | +fb_glockdir=@FB_GUARDDIR@ |
| 42 | +fb_pluginsdir=@FB_PLUGDIR@ |
| 43 | +fb_tzdatadir=@FB_TZDATADIR@ |
| 44 | + |
| 45 | +fb_cflags="-I$fb_incdir" |
| 46 | +fb_libs="-L$fb_libdir -lfbclient @CRYPTLIB@ @MATHLIB@" |
| 47 | + |
| 48 | +BuildVersion=@FIREBIRD_VERSION@.@FB_BUILD_NUM@ |
| 49 | +PackageVersion=@FIREBIRD_PACKAGE_VERSION@ |
| 50 | +CpuType=@CPU_TYPE@ |
| 51 | + |
| 52 | +Version="$BuildVersion-$PackageVersion.$CpuType" |
| 53 | + |
| 54 | +fb_version=$Version |
| 55 | + |
| 56 | + |
| 57 | +usage() { |
| 58 | + cat <<EOF |
| 59 | +
|
| 60 | +Usage $0 [Options] |
| 61 | +
|
| 62 | +Where Options are: |
| 63 | + --cflags |
| 64 | + --libs |
| 65 | + --embedlibs |
| 66 | + --bindir |
| 67 | + --udfdir |
| 68 | + --sbindir |
| 69 | + --confdir |
| 70 | + --docdir |
| 71 | + --sampledir |
| 72 | + --sampledbdir |
| 73 | + --helpdir |
| 74 | + --intldir |
| 75 | + --miscdir |
| 76 | + --securedbdir |
| 77 | + --msgdir |
| 78 | + --logdir |
| 79 | + --glockdir |
| 80 | + --pluginsdir |
| 81 | + --version |
| 82 | +EOF |
| 83 | +} |
| 84 | + |
| 85 | +if test "$#" -eq 0 ; then |
| 86 | + usage |
| 87 | + exit 1 |
| 88 | +fi |
| 89 | + |
| 90 | + |
| 91 | +while test $# -gt 0 |
| 92 | + do |
| 93 | + case "$1" in |
| 94 | + --cflags) echo $fb_cflags ;; |
| 95 | + --libs) echo $fb_libs ;; |
| 96 | + --embedlibs) echo $fb_libs ;; |
| 97 | + --bindir) echo $fb_bindir ;; |
| 98 | + --sbindir) echo $fb_sbindir ;; |
| 99 | + --confdir) echo $fb_confdir ;; |
| 100 | + --docdir) echo $fb_docdir ;; |
| 101 | + --sampledir) echo $fb_sampledir ;; |
| 102 | + --intldir) echo $fb_intldir ;; |
| 103 | + --miscdir) echo $fb_miscdir ;; |
| 104 | + --securedbdir) echo $fb_securedbdir ;; |
| 105 | + --msgdir) echo $fb_msgdir ;; |
| 106 | + --logdir) echo $fb_logdir ;; |
| 107 | + --glockdir) echo $fb_glockdir ;; |
| 108 | + --pluginsdir) echo $fb_pluginsdir ;; |
| 109 | + --tzdatadir) echo $fb_tzdatadir ;; |
| 110 | + --sampledbdir) echo $fb_sampledbdir ;; |
| 111 | + --version) echo $fb_version ;; |
| 112 | + --help) usage ;; |
| 113 | + *) usage ; |
| 114 | + esac |
| 115 | + shift |
| 116 | + done |
0 commit comments