/[public]/psiconv/trunk/program/psiconv-config/psiconv-config
ViewVC logotype

Contents of /psiconv/trunk/program/psiconv-config/psiconv-config

Parent Directory Parent Directory | Revision Log Revision Log


Revision 214 - (show annotations)
Sat Feb 21 12:10:04 2004 UTC (20 years, 1 month ago) by frodo
File size: 1333 byte(s)
(Frodo) Debian stuff
  * Changed psiconv-dev to libpsiconv-dev
  * Bumped up the version number

1 #!/bin/sh
2
3 prefix=/usr/local
4 exec_prefix=${prefix}
5 exec_prefix_set=no
6
7 usage()
8 {
9 cat <<EOF
10 Usage: psiconv-config [OPTIONS] [LIBRARIES]
11 Options:
12 [--prefix[=DIR]]
13 [--exec-prefix[=DIR]]
14 [--version]
15 [--libs]
16 [--cflags]
17 Libraries:
18 psiconv
19 EOF
20 exit $1
21 }
22
23 if test $# -eq 0; then
24 usage 1 1>&2
25 fi
26
27 lib_psiconv=yes
28
29 while test $# -gt 0; do
30 case "$1" in
31 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
32 *) optarg= ;;
33 esac
34
35 case $1 in
36 --prefix=*)
37 prefix=$optarg
38 if test $exec_prefix_set = no ; then
39 exec_prefix=$optarg
40 fi
41 ;;
42 --prefix)
43 echo_prefix=yes
44 ;;
45 --exec-prefix=*)
46 exec_prefix=$optarg
47 exec_prefix_set=yes
48 ;;
49 --exec-prefix)
50 echo_exec_prefix=yes
51 ;;
52 --version)
53 echo 0.9.2
54 exit 0
55 ;;
56 --cflags)
57 echo_cflags=yes
58 ;;
59 --libs)
60 echo_libs=yes
61 ;;
62 psiconv)
63 lib_psiconv=yes
64 ;;
65 *)
66 usage 1 1>&2
67 ;;
68 esac
69 shift
70 done
71
72 if test "$echo_prefix" = "yes"; then
73 echo $prefix
74 fi
75 if test "$echo_exec_prefix" = "yes"; then
76 echo $exec_prefix
77 fi
78 if test "$echo_cflags" = "yes"; then
79 echo -I${prefix}/include
80 fi
81 if test "$echo_libs" = "yes"; then
82 libsp=""
83 if test "$lib_psiconv" = "yes"; then
84 libsp="$libsp -lpsiconv"
85 fi
86 echo -L${exec_prefix}/lib $libsp
87 fi

Properties

Name Value
svn:executable *

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26