0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00

Tue Nov 14 08:13:39 PM CET 2023

This commit is contained in:
Bert van der Weerd 2023-11-14 20:13:39 +01:00
parent 01970b5910
commit 5d96af8445
No known key found for this signature in database
GPG key ID: 73370A0B9E5516B0
3 changed files with 12 additions and 17 deletions

View file

@ -4,6 +4,10 @@ stages:
- release - release
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
Linux: Linux:
stage: test stage: test

View file

@ -47,6 +47,7 @@ help :
@echo "docker:" $(docker_targets) @echo "docker:" $(docker_targets)
check : check :
-bash -c ./scripts/update-settings-module.sh
python3 scripts/update-version.py python3 scripts/update-version.py
cut -f1 version > version.tmp cut -f1 version > version.tmp
mv -vf version.tmp version mv -vf version.tmp version
@ -55,9 +56,9 @@ check :
@echo "LibreWolf release : " $$(cat release) @echo "LibreWolf release : " $$(cat release)
@echo "" @echo ""
update : update :
git submodule update --recursive --remote -bash -c ./scripts/update-settings-module.sh
# git submodule update --recursive --remote
all : $(lw_source_tarball) all : $(lw_source_tarball)

20
scripts/update-settings-module.sh Normal file → Executable file
View file

@ -1,22 +1,12 @@
#!/bin/bash #!/usr/bin/env bash
# Navigate to the root directory of your repository set -eu
cd /path/to/your/repo
# Update the submodule
echo "Checking for updates in the settings submodule..."
cd settings cd settings
git checkout master git checkout master
git pull origin master git pull origin master
cd .. cd ..
# Check if there are any changes git add settings
if [ -n "$(git diff --submodule)" ]; then git commit -m "Updated settings submodule to the latest version"
echo "Updates found in the submodule. Committing them..." git push
git add settings
git commit -m "Updated settings submodule to the latest version"
git push
echo "Updates committed and pushed."
else
echo "No updates in the submodule."
fi