mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-03-31 21:24:27 +02:00
58 lines
1.0 KiB
Bash
Executable File
58 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mydir="$(dirname "$(realpath "$0")")"
|
|
|
|
pushd "$mydir" > /dev/null
|
|
|
|
source ./merge_helpers.sh
|
|
|
|
# Persist current state
|
|
./generate_patches.sh
|
|
|
|
# Abandon all local submodule state
|
|
forall_repos git reset --hard
|
|
git submodule update -f --recursive
|
|
|
|
# Fetch upstream
|
|
forall_repos git fetch upstream
|
|
|
|
# Check if specific version to merge passed
|
|
if [ -z "$1" ]; then
|
|
get_latest_upstream_tag
|
|
else
|
|
latest_upstream_tag="$1"
|
|
fi
|
|
forelement_repos git checkout "$latest_upstream_tag"
|
|
|
|
get_current_mxsdk_tags
|
|
|
|
pushd "matrix-js-sdk" > /dev/null
|
|
git checkout "$current_mxjssdk_tag"
|
|
popd > /dev/null
|
|
|
|
pushd "matrix-react-sdk" > /dev/null
|
|
git checkout "$current_mxreactsdk_tag"
|
|
popd > /dev/null
|
|
|
|
# Refresh environment
|
|
make clean
|
|
make setup
|
|
|
|
# Apply our patches
|
|
apply_patches matrix-react-sdk
|
|
#apply_patches element-web
|
|
apply_patches element-desktop
|
|
|
|
# Automatic adjustments
|
|
#automatic_i18n_adjustment
|
|
automatic_packagejson_adjustment
|
|
|
|
# Automatic theme update
|
|
#pushd "matrix-react-sdk" > /dev/null
|
|
#./theme.sh y
|
|
#popd > /dev/null
|
|
|
|
popd > /dev/null
|