]> git.evergreen-ils.org Git - OpenSRF.git/blob - bin/osrf_config.in
LP1930578: Really Stop Single Services
[OpenSRF.git] / bin / osrf_config.in
1 #!/bin/sh
2 #
3 # Copyright (C) 2008 Equinox Software, Inc.
4 # Kevin Beswick <kevinbeswick00@gmail.com>
5 # Copyright (C) 2010 Laurentian University
6 # Dan Scott <dscott@laurentian.ca>
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18
19 # Shows configuration options of OpenSRF
20
21 prefix=@prefix@
22 exec_prefix=@exec_prefix@
23 datarootdir=@datarootdir@
24
25 showAll() {
26     echo @PACKAGE_STRING@
27     echo PREFIX=@prefix@
28     echo BINDIR=@bindir@
29     echo LIBDIR=@libdir@
30     echo TMP=@TMP@
31     echo INCLUDEDIR=@includedir@
32     echo SYSCONFDIR=@sysconfdir@
33     echo APXS2=@APXS2@
34     echo APACHE2_HEADERS=@APACHE2_HEADERS@
35     echo APR_HEADERS=@APR_HEADERS@
36     echo LIBXML2_HEADERS=@LIBXML2_HEADERS@
37 }
38
39 showHelp() {
40     echo
41     echo "------------------------------------------------------------"
42     echo " osrf_config                                                "
43     echo " Display the configuration options for this OpenSRF install "
44     echo "------------------------------------------------------------"
45     echo
46     echo "Usage: osrf_config [--option]"
47     echo
48     echo "Options: "
49     echo
50     echo "--help                  displays help"
51     echo "--version               displays version number of OpenSRF"
52     echo
53     echo "--apache                displays location of Apache headers"
54     echo "--apr                   displays location of Apache portable runtime headers"
55     echo "--apxs                  displays location of Apache extension tool"
56     echo "--bindir                displays location of binary executables"
57     echo "--includedir            displays location of header files"
58     echo "--libdir                displays location of libraries"
59     echo "--libxml                displays location of libxml2 headers"
60     echo "--localstatedir         displays location of state information"
61     echo "--prefix                displays install prefix"
62     echo "--sysconfdir            displays location of configuration files"
63     echo "--tmp                   displays location of temporary files"
64     echo
65 }
66
67 case "$1" in
68     --cconfig) cconfig;
69              ;;
70     --libxml)
71         echo @LIBXML2_HEADERS@
72         ;;
73     --apr)
74         echo @APR_HEADERS@
75         ;;
76     --apache)
77         echo @APACHE2_HEADERS@
78         ;;
79     --prefix)
80         echo @prefix@
81         ;;
82     --version)
83         echo @PACKAGE_STRING@
84         ;;
85     --bindir)
86         echo @bindir@
87         ;;
88     --libdir)
89         echo @libdir@
90         ;;
91     --sysconfdir)
92         echo @sysconfdir@
93         ;;
94     --localstatedir)
95         echo @localstatedir@
96         ;;
97     --tmpdir)
98         echo @TMP@
99         ;;
100     --apxs)
101         echo @APXS2@
102         ;;
103     --includedir)
104         echo @includedir@
105         ;;
106     --docdir)
107         echo @docdir@
108         ;;
109     --help)
110         showHelp
111         ;;
112     *)
113         showAll
114         ;;
115 esac