File: herwig-config.in

package info (click to toggle)
herwig%2B%2B 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 27,128 kB
  • ctags: 24,739
  • sloc: cpp: 188,949; fortran: 23,193; sh: 11,365; python: 5,069; ansic: 3,539; makefile: 1,865; perl: 2
file content (47 lines) | stat: -rw-r--r-- 1,703 bytes parent folder | download
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
#! /usr/bin/env bash
# @configure_input@

prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@

tmp=$(echo $* | egrep -- '--\<help\>|-\<h\>')
if test $# -eq 0 || test -n "$tmp"; then
    echo "herwig-config: configuration tool for the Herwig++ event generator"
    echo "               http://projects.hepforge.org/herwig/"
    echo
    echo "Usage: `basename $0` [Option]"
    echo "Options:"
    echo "  --help | -h    : show this help message"
    echo "  --prefix       : show the installation prefix (cf. autoconf)"
    echo "  --datadir      : show the path to the directory containing shared data"
    echo "  --libdir       : show the path to the directory containing the libraries"
    echo "  --includedir   : show the path to the directory containing the headers"
    echo "  --cppflags     : show the required CPPFLAGS for building against Herwig++"
    echo "  --ldflags      : show the required LDFLAGS for linking against Herwig++"
    echo "  --ldlibs       : show the required libraries for linking against Herwig++"

    echo
fi

tmp=$(echo "$*" | egrep -- '--\<prefix\>')
test -n "$tmp" && echo $prefix

tmp=$(echo "$*" | egrep -- '--\<datadir\>')
test -n "$tmp" && echo @datadir@/@PACKAGE_TARNAME@

tmp=$(echo "$*" | egrep -- '--\<libdir\>')
test -n "$tmp" && echo @libdir@/@PACKAGE_TARNAME@

tmp=$(echo "$*" | egrep -- '--\<includedir\>')
test -n "$tmp" && echo @includedir@

tmp=$(echo "$*" | egrep -- '--\<cppflags\>')
test -n "$tmp" && echo -I@includedir@ @THEPEGINCLUDE@ @BOOSTINCLUDE@ @GSLINCLUDE@

tmp=$(echo "$*" | egrep -- '--\<ldflags\>')
test -n "$tmp" && echo @THEPEGLDFLAGS@

tmp=$(echo "$*" | egrep -- '--\<ldlibs\>')
test -n "$tmp" && echo @THEPEGLIB@