| 1 #!/bin/sh |
1 #!/bin/sh |
| 2 |
2 |
| 3 if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then |
3 if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ] ; then |
| 4 echo "Usage: $0 <version> <libdir> <includedir> [destdir]" |
4 echo "Usage: $0 <pkgconfigdir> <version> <libdir> <includedir> [destdir]" |
| 5 exit 1 |
5 exit 1 |
| 6 fi |
6 fi |
| 7 |
7 |
| 8 version="$1" |
8 pkgconfigdir="$1" |
| 9 libdir="$2" |
9 version="$2" |
| 10 includedir="$3" |
10 libdir="$3" |
| 11 destdir="$4" |
11 includedir="$4" |
| |
12 destdir="$5" |
| 12 |
13 |
| 13 cat << EOF > "$destdir$libdir/pkgconfig/ucx.pc" |
14 cat << EOF > "$destdir$pkgconfigdir/ucx.pc" |
| 14 libdir=$libdir |
15 libdir=$libdir |
| 15 includedir=$includedir |
16 includedir=$includedir |
| 16 |
17 |
| 17 Name: ucx |
18 Name: ucx |
| 18 Description: UAP Common Extensions |
19 Description: UAP Common Extensions |