From 546b0abe3274b6294facd4e932c81f23a80c43ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 10 Jul 2020 11:07:40 +0200 Subject: [PATCH] misc: add script to update LJM to the latest commit --- resources/update-ljm.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 resources/update-ljm.sh diff --git a/resources/update-ljm.sh b/resources/update-ljm.sh new file mode 100755 index 000000000..ec55cbdad --- /dev/null +++ b/resources/update-ljm.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e -u + +THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd) +LATEST_LJM_COMMIT=$(git ls-remote https://github.com/jitsi/lib-jitsi-meet.git HEAD | awk '{ print $1 }') + +pushd ${THIS_DIR}/.. + +npm install github:jitsi/lib-jitsi-meet#${LATEST_LJM_COMMIT} +git add package.json package-lock.json +git commit -m "deps: lib-jitsi-meet@latest" + +popd + +echo "Done! Now push your branch to GH and open a PR!"