make/install-lib.sh

Mon, 17 Nov 2025 22:28:04 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 17 Nov 2025 22:28:04 +0100
changeset 1493
33f556a7eca6
parent 1484
d72725216f37
permissions
-rwxr-xr-x

add missing test coverage for inserting a duplicate for the beginning node with cx_linked_list_insert_sorted()

#!/bin/sh

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

SRC=$1
LIB=$(basename $1)
LIBDIR=$5$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