make/install-pc-file.sh

Sun, 30 Nov 2025 15:06:02 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 15:06:02 +0100
changeset 1531
3ee5a5c7823a
parent 1523
b5c32391802f
permissions
-rw-r--r--

fix out-of-bounds read in cx_array_insert_sorted_impl()

#!/bin/sh

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

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

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

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

mercurial