~kamalmostafa/ubuntu/lucid/pdp/fix-504941-ftbfs

« back to all changes in this revision

Viewing changes to bin/pdp-config.in

  • Committer: Bazaar Package Importer
  • Author(s): Guenter Geiger (Debian/GNU)
  • Date: 2005-03-15 22:21:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050315222105-1q287rsihmd9j1tb
Tags: 1:0.12.4-2
* fixed the hardcoded depends
* added 3dp library

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
prefix=@prefix@
4
 
version=@PDP_VERSION@
5
 
 
6
 
usage="\
7
 
Usage: pdp-config [--version] [--cflags] [--libdir]"
8
 
 
9
 
if test $# -eq 0; then
10
 
      echo "${usage}" 1>&2
11
 
      exit 1
12
 
fi
13
 
 
14
 
while test $# -gt 0; do
15
 
  case "$1" in
16
 
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
17
 
  *) optarg= ;;
18
 
  esac
19
 
 
20
 
  case $1 in
21
 
    -n)
22
 
      NEWLINE="-n"
23
 
      ;;
24
 
    --libdir)
25
 
      echo $NEWLINE $prefix/lib/scaf
26
 
      ;;
27
 
    --version)
28
 
      echo $NEWLINE $version
29
 
      ;;
30
 
    --cflags)
31
 
      echo $NEWLINE -I$prefix/include/pdp
32
 
      ;;
33
 
    *)
34
 
      echo "${usage}" 1>&2
35
 
      exit 1
36
 
      ;;
37
 
  esac
38
 
  shift
39
 
done