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

Annotation of /psiconv/trunk/program/psiconv-config/psiconv-config

Parent Directory Parent Directory | Revision Log Revision Log


Revision 239 - (hide annotations)
Thu Mar 4 21:55:40 2004 UTC (20 years ago) by frodo
File size: 1333 byte(s)
(Frodo) Bug fixes
  * Image colors correction (scale 0.0 to 1.0, instead of 0.0 to less-than 1.0)
  * Bullet and indentation docs update
  * Update version number

1 frodo 204 #!/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 frodo 239 echo 0.9.4
54 frodo 204 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