make/install-lib.sh

Mon, 10 Nov 2025 21:36:15 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 10 Nov 2025 21:36:15 +0100
changeset 1482
6769cb72521b
parent 1472
c48cf649c10f
permissions
-rwxr-xr-x

implement a new allocation strategy for array lists and add cxListReserve() and cxListShrink()

resolves #758

#!/bin/sh

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

SRC=$1
LIB=$(basename $1)
LIBDIR=$2
LIBVERSION=$3
LIBVERSION_MAJOR=$4

cp -f "$SRC" "$LIBDIR/$LIB.$LIBVERSION"

rm -f "$LIBDIR/$LIB.$LIBVERSION_MAJOR"
rm -f "$LIBDIR/$LIB"
ln -s "$LIB.$LIBVERSION" "$LIBDIR/$LIB.$LIBVERSION_MAJOR"
ln -s "$LIB.$LIBVERSION_MAJOR" "$LIBDIR/$LIB"

mercurial