mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
2b382f606b
2. Script to switch between classic and superclassic modes. 3. Changed lisences from LGPL to IDPL (with Mark's agreement)
77 lines
1.7 KiB
Bash
77 lines
1.7 KiB
Bash
#! /bin/sh
|
|
#
|
|
# The contents of this file are subject to the Initial
|
|
# Developer's Public License Version 1.0 (the "License");
|
|
# you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
# http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
|
|
#
|
|
# Software distributed under the License is distributed AS IS,
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing rights
|
|
# and limitations under the License.
|
|
#
|
|
# The Original Code was created by Mark O'Donohue
|
|
# for the Firebird Open Source RDBMS project.
|
|
#
|
|
# Copyright (c) Mark O'Donohue <mark.odonohue@ludwig.edu.au>
|
|
# and all contributors signed below.
|
|
#
|
|
# All Rights Reserved.
|
|
# Contributor(s): ______________________________________.
|
|
#
|
|
|
|
# stored configuration values
|
|
|
|
fb_root=@prefix@
|
|
fb_bindir=$fb_root/bin
|
|
fb_libdir=$fb_root/lib
|
|
fb_incdir=$fb_root/include
|
|
|
|
fb_cflags="-I$fb_incdir"
|
|
fb_libs="-L$fb_libdir -lfbclient"
|
|
fb_embedlibs="-L$fb_libdir -lfbembed"
|
|
|
|
BuildVersion=@FIREBIRD_VERSION@.@FB_BUILD_NUM@
|
|
PackageVersion=@FIREBIRD_PACKAGE_VERSION@
|
|
CpuType=@CPU_TYPE@
|
|
|
|
Version="$BuildVersion-$PackageVersion.$CpuType"
|
|
|
|
fb_version=$Version
|
|
|
|
|
|
usage() {
|
|
cat <<EOF
|
|
|
|
Usage $0 [Options]
|
|
|
|
Where Options are:
|
|
--cflags
|
|
--libs
|
|
--embedlibs
|
|
--bindir
|
|
--version
|
|
EOF
|
|
}
|
|
|
|
if test "$#" -eq 0 ; then
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
|
|
while test $# -gt 0
|
|
do
|
|
case "$1" in
|
|
--cflags) echo $fb_cflags ;;
|
|
--libs) echo $fb_libs ;;
|
|
--embedlibs) echo $fb_embedlibs ;;
|
|
--bindir) echo $fb_bindir ;;
|
|
--version) echo $fb_version ;;
|
|
--help) usage ;;
|
|
*) usage ;
|
|
esac
|
|
shift
|
|
done
|