File: dictdplugin-config.in

package info (click to toggle)
dictd 1.13.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 3,920 kB
  • sloc: ansic: 12,523; sh: 4,406; yacc: 512; makefile: 442; cpp: 277; lex: 256; perl: 175; awk: 12
file content (48 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (11)
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
#!/bin/sh

usage () {
    cat <<EOF
This script is a part of dictd package.

Usage: dictd-config [OPTIONS]
Options:
  [--help]
  [--version]
  [--libs]
  [--cflags]
  [--plugindir]   Directory where plugin should be installed and searched
  [--dictdir]     Directory where dictionaries should be installed and searched
EOF
}

prefix=@prefix@
exec_prefix=@exec_prefix@

while test $# -ne 0; do
    case $1 in
	--help)
	    usage
	    exit;;
	--version)
	    echo @DICT_VERSION@
	    exit;;
	--libs)
	    echo -L@libdir@
	    exit;;
	--cflags)
	    echo -I@includedir@
	    exit;;
	--plugindir)
	    echo @libexecdir@
	    exit;;
	--dictdir)
	    echo @datadir@
	    exit;;
	*)
	    echo "invalid argument $1"
	    exit 2
    esac
    shift
done

usage