Page MenuHomeHEPForge

rivet-config.in
No OneTemporary

rivet-config.in

#! /usr/bin/env bash
# @configure_input@
# These variables need to exist
prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
tmp=$(echo $* | egrep -- '--\<help\>|-\<h\>')
if test $# -eq 0 || test -n "$tmp"; then
echo "rivet-config: configuration tool for the Rivet generator validation system"
echo " http://projects.hepforge.org/rivet/"
echo
echo "Usage: $( basename $0 ) [--help|-h] | "
echo " [--{prefix,datadir,libdir,includedir}] | "
echo " [--{cppflags,ldflags,ldlibs}] | "
echo " [--version]"
echo "Options:"
echo " --help | -h : show this help message"
echo
echo " --prefix : show the installation prefix (cf. autoconf)"
echo " --includedir : show the path to the directory containing the Rivet headers"
echo " --libdir : show the path to the directory containing the Rivet libraries"
echo " --datadir : show the path to the directory containing Rivet data"
echo " --rgdatadir : show the path to the directory containing RivetGun data"
echo
echo " --cppflags : returns a Rivet '-I' string for insertion into CPPFLAGS"
echo " --ldflags : returns a Rivet '-L' string for insertion into LDFLAGS"
echo " --ldadd : returns a Rivet '-l' string for insertion into LIBS or LIBADD"
echo
echo " --version : returns Rivet release version number"
fi
## "Atomic" build info, for "roll your own build" obsessives
tmp=$( echo "$*" | egrep -- '--\<prefix\>')
test -n "$tmp" && echo @prefix@
tmp=$( echo "$*" | egrep -- '--\<includedir\>')
test -n "$tmp" && echo @includedir@
tmp=$( echo "$*" | egrep -- '--\<libdir\>')
test -n "$tmp" && echo @libdir@
tmp=$( echo "$*" | egrep -- '--\<datadir\>')
test -n "$tmp" && echo @datadir@/@PACKAGE_TARNAME@
tmp=$( echo "$*" | egrep -- '--\<rgdatadir\>')
test -n "$tmp" && echo @datadir@/RivetGun
## "Pre-rolled" build info
tmp=$( echo "$*" | egrep -- '--\<cppflagsdir\>')
test -n "$tmp" && echo -I@includedir@
tmp=$( echo "$*" | egrep -- '--\<ldflags\>')
test -n "$tmp" && echo -L@libdir@
tmp=$( echo "$*" | egrep -- '--\<ldlibs\>')
test -n "$tmp" && echo -lRivet
## Version
tmp=$( echo "$*" | egrep -- '--\<version\>')
test -n "$tmp" && echo @PACKAGE_VERSION@

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 24, 6:46 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4487332
Default Alt Text
rivet-config.in (2 KB)

Event Timeline