1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
#!/usr/bin/env bash
#-------------------------------------------------------------------------------
# Copyright (c) 2014 by European Organization for Nuclear Research (CERN)
# Author: Lukasz Janyst <ljanyst@cern.ch>
#-------------------------------------------------------------------------------
# This file is part of the XRootD software suite.
#
# XRootD is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# XRootD is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with XRootD. If not, see <http://www.gnu.org/licenses/>.
#
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.
#-------------------------------------------------------------------------------
version=@XRootD_VERSION_STRING@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/xrootd
plugin_version=@PLUGIN_VERSION@
usage()
{
cat <<EOF
Usage: xrootd-config [OPTION] ...
Generic options
--version output XRootD version information.
--help display this help and exit.
Compilation support options
--cflags print pre-processor and compiler flags
--plugin-version print plug-in version suffix
Install directories XRootD was configured to
--prefix
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case $1 in
--prefix)
echo $prefix
;;
--version)
echo ${version#v}
;;
--cflags)
if test "$includedir" != "/usr/include" ; then
echo "-I${includedir}"
fi
;;
--plugin-version)
echo ${plugin_version}
;;
--help)
usage 0
;;
*)
usage 1 1>&2
;;
esac
shift
done
|