Tue, 28 Oct 2025 21:24:49 +0100
protect against possible spaces in the paths
| 1457 | 1 | #!/bin/sh |
| 2 | ||
| 3 | if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then | |
| 4 | echo "Illegal use." | |
| 5 | exit 1 | |
| 6 | fi | |
| 7 | ||
|
1458
053230cb6cfd
protect against possible spaces in the paths
Mike Becker <universe@uap-core.de>
parents:
1457
diff
changeset
|
8 | version="$1" |
|
053230cb6cfd
protect against possible spaces in the paths
Mike Becker <universe@uap-core.de>
parents:
1457
diff
changeset
|
9 | libdir="$2" |
|
053230cb6cfd
protect against possible spaces in the paths
Mike Becker <universe@uap-core.de>
parents:
1457
diff
changeset
|
10 | includedir="$3" |
| 1457 | 11 | |
|
1458
053230cb6cfd
protect against possible spaces in the paths
Mike Becker <universe@uap-core.de>
parents:
1457
diff
changeset
|
12 | cat << EOF > "$libdir/pkgconfig/ucx.pc" |
| 1457 | 13 | libdir=$libdir |
| 14 | includedir=$includedir | |
| 15 | ||
| 16 | Name: ucx | |
| 17 | Description: UAP Common Extensions | |
| 18 | Copyright: Copyright (c) 2025 Mike Becker, Olaf Wintermann | |
| 19 | License: BSD-2-Clause | |
| 20 | URL: https://ucx.sourceforge.io | |
| 21 | Version: $version | |
| 22 | Libs: -L\${libdir} -lucx | |
| 23 | Cflags: -I\${includedir} | |
| 24 | EOF |