Sharp.Augeas/CodeLiturgy.Augeas/copyLibrary.sh

19 lines
497 B
Bash
Executable File

#!/bin/bash
LIB_FILE=libclAugeas.dylib
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DESTIN=$SCRIPT_DIR/bin/Debug/net6.0
# Set the $CLAUG_LIB_PATH to the PATH where the claugeas library is located before running this script
if [[ -z "${CLAUG_LIB_PATH}" ]]; then
echo "set the CLAUG_LIB_PATH in the ${LIB_FILE} location."
return
fi
BINARY=$CLAUG_LIB_PATH/$LIB_FILE
if [ -e "$DESTIN/$LIB_FILE" ]; then
rm -fv $DESTIN/$LIB_FILE
fi
cp -v $BINARY $DESTIN