Updated submodules
This commit is contained in:
parent
821c7a2826
commit
f96f3dd4db
3 changed files with 55 additions and 2 deletions
2
externals/pasriscv
vendored
2
externals/pasriscv
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit bbe18cca5bf74fde34ad13c67134941f81167179
|
||||
Subproject commit f4533511ac3844a232a23c88b4973ecdaeb92dd2
|
||||
2
externals/rnl
vendored
2
externals/rnl
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 4acf80bce5fc16b882c13688f0912721f99195c9
|
||||
Subproject commit af42519f2cc5508a8f9f169c2064fe27ad59ee1a
|
||||
53
pushrnl
Executable file
53
pushrnl
Executable file
|
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Check if the script is run from the root of the PasVulkan GIT repository by checking if the .git directory is present
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "This script must be run from the root of the PasVulkan GIT repository"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the script is run from the original author by checking if the home directory /home/bero is present, which is the home directory of the original author
|
||||
if [ ! -d "/home/bero" ]; then
|
||||
echo "This script must be run only from the original author"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
read -p "Enter commit message (or leave blank for default): " commit_message
|
||||
|
||||
if [ -z "$commit_message" ]; then
|
||||
commit_message="More work"
|
||||
fi
|
||||
|
||||
# Save the current directory in a variable
|
||||
OLD_DIR="$(pwd)"
|
||||
|
||||
# Copy modified files from the RNL submodule to the real directory of the RNL GIT repository
|
||||
cp -f externals/rnl/README.md ../rnl/README.md
|
||||
cp -f externals/rnl/src/RNL.pas ../rnl/src/RNL.pas
|
||||
|
||||
# Clean the RNL submodule from the local changes
|
||||
cd externals/rnl
|
||||
git stash # Stash the local changes
|
||||
git stash drop # Drop the stashed local changes
|
||||
git pull origin master # For ensuring that the local RNL submodule is on the right branch
|
||||
cd "${OLD_DIR}"
|
||||
|
||||
# Commit the changes in the RNL GIT repository
|
||||
cd ../rnl
|
||||
git commit -a -m "$commit_message"
|
||||
git push
|
||||
cd "${OLD_DIR}"
|
||||
|
||||
# Update all submodules including the RNL submodule for the lastest versions
|
||||
git submodule update --remote --recursive
|
||||
|
||||
# Commit the changes in the main PasVulkan GIT repository
|
||||
git commit -am "Updated submodules"
|
||||
git push
|
||||
|
||||
# Switch to the old directory back
|
||||
cd "${OLD_DIR}"
|
||||
|
||||
# Exit with success
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue