]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/eg_config.in
LP1827055 Remove Python libs, install bits, and docs
[Evergreen.git] / Open-ILS / src / extras / eg_config.in
1 #!/bin/bash
2 #
3 # Copyright (C) 2008 Equinox Software, Inc.
4 # Kevin Beswick <kevinbeswick00@gmail.com>
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16
17 # Shows configuration options of Evergreen
18
19 prefix=@prefix@
20 exec_prefix=@prefix@
21 datarootdir=@datarootdir@
22
23 function showInstalled {
24         if test "@BUILDILSCORE_TRUE@" = ""; then
25                 echo "EG_CORE"
26         fi
27         if test "@BUILDILSWEB_TRUE@" = ""; then
28                 echo "EG_WEB"
29         fi
30         if test "@BUILDILSREPORTER_TRUE@" = ""; then
31                 echo "EG_REPORTER"
32         fi
33         if test "@BUILDILSCLIENT_TRUE@" = ""; then
34                 echo "EG_CLIENT"
35         fi
36         if test "@BUILDEGJAVA_TRUE@" = ""; then
37                 echo "EG_JAVA"
38         fi
39 }
40
41 function showAll {
42          echo @PACKAGE_STRING@  
43          echo PREFIX=@prefix@
44          echo BINDIR=@bindir@
45          echo LIBDIR=@libdir@
46          echo TMP=@TMP@
47          echo INCLUDEDIR=@includedir@
48          echo SYSCONFDIR=@sysconfdir@
49          echo APXS2=@APXS2@
50          echo LIBXML2_HEADERS=@LIBXML2_HEADERS@
51          echo 
52          echo "Installed modules:"
53          showInstalled;
54 }
55
56
57 function showHelp {
58          echo 
59          echo "------------------------------------------------------------"
60          echo " eg_config                                                  "
61          echo " Shows configuration of evergreen                           "
62          echo "------------------------------------------------------------"
63          echo
64          echo "Usage: eg_config [--option]"
65          echo 
66          echo "Options: "
67          echo
68          echo "--help                  displays help"
69          echo "--version               displays version number of evergreen"
70          echo "--installed             displays options that were installed"
71          echo "--prefix                displays prefix"
72          echo "--bindir                displays bindir"
73          echo "--libdir                displays libdir"
74          echo "--tmp                   displays tmp"
75          echo "--includedir            displays includedir"
76          echo "--sysconfdir            displays sysconfdir"
77          echo "--apxs                  displays location of apxs"
78          echo "--libxml                displays location of libxml2 headers" 
79          echo
80 }
81
82 case "$1" in
83      --installed)
84                 showInstalled;
85                 ;;
86      --cconfig) cconfig;
87                 ;;
88      --libxml)
89                 echo @LIBXML2_HEADERS@;
90                 ;;
91      --apr)
92                 echo @APR_HEADERS@;
93                 ;;
94      --apache)
95                 echo @APACHE2_HEADERS@;
96                 ;;
97      --prefix)
98                 echo @prefix@
99                 ;;
100      --version) 
101                 echo @PACKAGE_STRING@;
102                 ;;
103      --bindir)
104                 echo @bindir@
105                 ;;
106      --libdir)
107                 echo @libdir@;
108                 ;;
109      --sysconfdir)
110                 echo @sysconfdir@;
111                 ;;
112      --localstatedir)
113                 echo @localstatedir@;
114                 ;;
115      --tmpdir)
116                 echo @TMP@;
117                 ;;
118      --apxs)
119                 echo @APXS2@;
120                 ;;
121      --includedir)
122                 echo @includedir@;
123                 ;;
124      --docdir)
125                 echo @docdir@;
126                 ;;
127      --help)
128                 showHelp;
129                 ;;
130      *)
131                 showAll;
132                 ;;
133 esac