mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
Tue Nov 14 08:13:39 PM CET 2023
This commit is contained in:
parent
01970b5910
commit
5d96af8445
3 changed files with 12 additions and 17 deletions
|
@ -4,6 +4,10 @@ stages:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- git submodule sync --recursive
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -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)
|
||||||
|
|
14
scripts/update-settings-module.sh
Normal file → Executable file
14
scripts/update-settings-module.sh
Normal file → Executable 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
|
|
||||||
if [ -n "$(git diff --submodule)" ]; then
|
|
||||||
echo "Updates found in the submodule. Committing them..."
|
|
||||||
git add settings
|
git add settings
|
||||||
git commit -m "Updated settings submodule to the latest version"
|
git commit -m "Updated settings submodule to the latest version"
|
||||||
git push
|
git push
|
||||||
echo "Updates committed and pushed."
|
|
||||||
else
|
|
||||||
echo "No updates in the submodule."
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue