From 98cb2a85776ac5964e13b5cd8dea27ba37efd6d2 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Mon, 1 Jan 2024 09:55:17 +0100 Subject: [PATCH] add path in env.sh & submodu;es-upd.sh --- scripts/env.sh | 3 ++- scripts/submodules-upd.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 scripts/submodules-upd.sh diff --git a/scripts/env.sh b/scripts/env.sh index 62a9e8e..b8187bf 100755 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -20,7 +20,8 @@ if [[ ! -v _BRCHESS_ENV_ ]]; then export _BRCHESS_ENV_=1 BRCHESS_ROOT BRLIBDIR LD_LIBRARY_PATH BRCHESS_ROOT=$(realpath -L "$(dirname "${BASH_SOURCE[0]}")/..") BRLIBDIR="$BRCHESS_ROOT/brlib/lib" - LD_LIBRARY_PATH=${BRLIBDIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} + LD_LIBRARY_PATH="${BRLIBDIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" + PATH="$PATH:$(realpath -L "$(dirname "${BASH_SOURCE[0]}")")" #printf "R=%s L=%s LD=%s\n" "$BRCHESS_ROOT" "$BRLIB_DIR" "$LD_LIBRARY_PATH" printf "Chess environment complete.\n" fi diff --git a/scripts/submodules-upd.sh b/scripts/submodules-upd.sh new file mode 100755 index 0000000..37dcb0f --- /dev/null +++ b/scripts/submodules-upd.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +git submodule update --remote --merge