Sharp.Augeas/CodeLiturgy.Augeas/copyLibrary.sh

19 lines
497 B
Bash
Raw Normal View History

2022-11-04 20:09:06 +03:00
#!/bin/bash
2022-11-05 05:07:41 +03:00
LIB_FILE=libclAugeas.dylib
2022-11-04 20:09:06 +03:00
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DESTIN=$SCRIPT_DIR/bin/Debug/net6.0
2022-11-05 05:07:41 +03:00
# 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