File: ETL-config.in

package info (click to toggle)
etl 0.04.17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,800 kB
  • ctags: 1,719
  • sloc: cpp: 7,564; sh: 3,978; ansic: 824; makefile: 214
file content (64 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (13)
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
#!/bin/sh

VERSION=@VERSION@
PACKAGE=@PACKAGE@

usage()
{
	cat <<EOF
Usage: ETL-config [OPTION]...

Generic options
  --version	print installed version of ETL.
  --help        display this help and exit.

Compilation support options
  --cflags      print pre-processor and compiler flags
  --libs        print library linking information
  
Install directories
  --prefix --exec-prefix --bindir --libexecdir --datadir
  --sysconfdir --sharedstatedir --localstatedir --libdir --infodir
  --mandir --includedir

EOF
	
	exit $1
}

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

case $1 in
--version)
	echo $PACKAGE $VERSION
	exit 0
	;;
--exec-prefix)
	pkg-config --variable=exec_prefix ETL
	exit 0
	;;
--prefix)
	pkg-config --variable=prefix ETL
	exit 0
	;;
--help)
	usage 0
	;;
--cxxflags)
	pkg-config --cflags ETL
	exit 0
	;;
--cflags)
	pkg-config --cflags ETL
	exit 0
	;;
--libs)
	pkg-config --libs ETL
	exit 0
	;;
esac

echo Unknown option "$1"
exit 4