From 17dd0b5a341d3b4948b8e04f3075234da5bd7bb2 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 16 Jan 2024 17:38:41 +0100 Subject: [PATCH] Fix build-converse. --- conversejs/build-conversejs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conversejs/build-conversejs.sh b/conversejs/build-conversejs.sh index c6c07027..447bfc2f 100644 --- a/conversejs/build-conversejs.sh +++ b/conversejs/build-conversejs.sh @@ -40,15 +40,18 @@ if [[ ! -d "$converse_src_dir" ]]; then git remote add origin $CONVERSE_REPO git fetch --depth 1 origin $CONVERSE_COMMIT git checkout $CONVERSE_COMMIT + # In order to be able to test if $converse_build_dir is up to date, we add the commit id in a file: cd - + echo "$CONVERSE_COMMIT" > "$converse_src_dir/current" else echo "Shallow cloning ConverseJS." git clone --depth=1 --branch $CONVERSE_VERSION $CONVERSE_REPO $converse_src_dir + echo "$CONVERSE_VERSION" > "$converse_src_dir/current" fi rm -rf "$converse_build_dir" fi -if cmp -s "$converse_src_dir/package.json" "$converse_build_dir/package.json"; then +if cmp -s "$converse_src_dir/package.json" "$converse_build_dir/package.json" && cmp -s "$converse_src_dir/current" "$converse_build_dir/current"; then echo "ConverseJS files are already up to date in the build directory." else echo "ConverseJS files are not up to date in the build directory, copying them..."