make/install-pc-file.sh

Sat, 29 Nov 2025 12:10:27 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 29 Nov 2025 12:10:27 +0100
changeset 1522
d0b5eb033b2a
parent 1484
d72725216f37
permissions
-rw-r--r--

fix install-lib.sh compatibility with older shells

#!/bin/sh

if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then
  echo "Usage: $0 <version> <libdir> <includedir> [destdir]"
  exit 1
fi

version="$1"
libdir="$2"
includedir="$3"
destdir="$4"

cat << EOF > "$destdir$libdir/pkgconfig/ucx.pc"
libdir=$libdir
includedir=$includedir

Name: ucx
Description: UAP Common Extensions
Version: $version
Libs: -L\${libdir} -lucx
Cflags: -I\${includedir}
EOF

mercurial