-
Notifications
You must be signed in to change notification settings - Fork 1
/
kvconfig.in
executable file
·83 lines (75 loc) · 2.29 KB
/
kvconfig.in
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
80
81
82
83
#!/bin/sh
# Kvalobs - Free Quality Control Software for Meteorological Observations
#
# Copyright (C) 2007 met.no
#
# Contact information:
# Norwegian Meteorological Institute
# Box 43 Blindern
# 0313 OSLO
# NORWAY
# email: [email protected]
#
# This file is part of KVALOBS
#
# KVALOBS is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# KVALOBS 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 General Public License along
# with KVALOBS; if not, write to the Free Software Foundation Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
prefix=@prefix@
exec_prefix=@exec_prefix@
VERSION="kvconfig (@PACKAGE@) @VERSION@"
if [ x$1 = x ]; then
echo Usage kvconfig OPTION
echo Run kvconfig --help for more information
exit 1
fi
if [ x$2 != x ]; then
echo Only one option is allowed at a time.
echo Run kvconfig --help for more information
exit 1
fi
case $1 in
--prefix) echo @prefix@ ;;
--bindir) echo @bindir@ ;;
--libexecdir) echo @libexecdir@ ;;
--libdir) echo @libdir@ ;;
--includedir) echo @pkgincludedir@ ;;
--datadir) echo @datadir@ ;;
--idldir) echo @datadir@/@PACKAGE@/idl ;;
--sysconfdir) echo @sysconfdir@ ;;
--localstatedir) echo @localstatedir@ ;;
--kvstatedir) echo @localstatedir@/@PACKAGE@ ;;
--rundir) echo @localstatedir@/lib/@PACKAGE@/run ;;
--logdir) echo @localstatedir@/log/@PACKAGE@ ;;
--pkglibdir) echo @libdir@/@PACKAGE@@KVALOBSLIBS_BIN_VERSION@ ;;
--version) echo $VERSION ;;
--help)
echo $VERSION
echo
echo Get information about kvalobs installation
echo
echo Usage: kvconfig OPTION
echo
echo Options:
echo
echo Use exactly one of the following options:
echo
echo --prefix --bindir --libexecdir --libdir --includedir --datadir
echo --idldir --sysconfdir --localstatedir --pkglibdir --logdir --rundir
echo --kvstatedir --version --help
;;
*)
echo Unkonwn option: $1
exit 1
;;
esac