mirror of
https://github.com/RetroDECK/net.rpcs3.RPCS3.git
synced 2025-01-19 07:35:38 +00:00
Update from upstream script updated
This commit is contained in:
parent
0a2a94cc76
commit
59f9242e0c
|
@ -1,4 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
git fetch https://github.com/flathub/net.rpcs3.RPCS3 master # Fetch the latest changes from the remote master branch
|
||||
git merge FETCH_HEAD # Merge the fetched changes into your current branch
|
||||
target_branch="master"
|
||||
update_submodules="true"
|
||||
|
||||
# Get the repository name
|
||||
repo_url=$(git remote get-url origin)
|
||||
repo_name=$(basename -s .git "$repo_url")
|
||||
|
||||
echo "Fetching https://github.com/flathub/$repo_name $target_branch"
|
||||
if [ "$update_submodules" = "true" ]; then
|
||||
echo "And updating submodules also"
|
||||
fi
|
||||
echo ""
|
||||
|
||||
# Fetch the latest changes from the remote master branch
|
||||
git fetch https://github.com/flathub/"$repo_name" "$target_branch"
|
||||
|
||||
# Merge the fetched changes into your current branch
|
||||
git merge FETCH_HEAD
|
||||
|
||||
if [ "$update_submodules" = "true" ]; then
|
||||
# Update submodules to the versions specified in the repo
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Update submodules to the versions specified in the fetched repo
|
||||
git submodule update --remote
|
||||
git add shared-modules
|
||||
git commit -m "Update shared modules"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue