summaryrefslogtreecommitdiff
path: root/src/skribilo-config.in
blob: eb5983c578728ab80cfe091806010852d24cf796 (plain)
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
#!/bin/sh
#
#           Author: Erick Gallesio [eg@essi.fr]
#                   Ludovic Court�s <ludo@gnu.org>


function usage()
{
    cat <<EOF
Usage: skribilo-config [OPTIONS]
Display the configuration of Skribilo.

  --version, -v		Show Skribilo version.
  --help, -h		Show a list of options.

  --prefix, -p		Prefix that was given during the build
  --module-dir, -m	Display the Guile module directory
  --doc-dir, -d		Display the documentation directory location
  --emacs-dir, -e	Display the emacs directory location
  --scheme, -s		Display the configured Scheme implementation

Report bugs to <@PACKAGE_BUGREPORT@>.
EOF
    exit $1
}


if test $# -eq 0; then
    usage 1 1>&2
fi

while test $# -gt 0; do
    case "$1" in
	--version|-v)
	    echo @PACKAGE_VERSION@
	    ;;
	--prefix|-p)
	    echo @prefix@
	    ;;
	--module-dir|-m)
	    echo @guilemoduledir@
	    ;;
	--doc-dir|-d) 
	    echo @docdir@
	    ;;
	--emacs-dir|-e) 
	    echo @emacsdir@
	    ;;
	--scheme|-s)
	    echo @GUILE@
	    ;;
	--help|-h)
	    usage 0 1>&2
	    ;;
	*)
	    echo "unrecognized option \`$1'" 1>&2
	    usage 1 1>&2
	    ;;
    esac
    shift
done
exit 0