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:
parent
01970b5910
commit
5d96af8445
3 changed files with 12 additions and 17 deletions
|
@ -4,6 +4,10 @@ stages:
|
|||
- release
|
||||
|
||||
|
||||
before_script:
|
||||
- git submodule sync --recursive
|
||||
- git submodule update --init --recursive
|
||||
|
||||
|
||||
Linux:
|
||||
stage: test
|
||||
|
|
5
Makefile
5
Makefile
|
@ -47,6 +47,7 @@ help :
|
|||
@echo "docker:" $(docker_targets)
|
||||
|
||||
check :
|
||||
-bash -c ./scripts/update-settings-module.sh
|
||||
python3 scripts/update-version.py
|
||||
cut -f1 version > version.tmp
|
||||
mv -vf version.tmp version
|
||||
|
@ -55,9 +56,9 @@ check :
|
|||
@echo "LibreWolf release : " $$(cat release)
|
||||
@echo ""
|
||||
|
||||
|
||||
update :
|
||||
git submodule update --recursive --remote
|
||||
-bash -c ./scripts/update-settings-module.sh
|
||||
# git submodule update --recursive --remote
|
||||
|
||||
|
||||
all : $(lw_source_tarball)
|
||||
|
|
20
scripts/update-settings-module.sh
Normal file → Executable file
20
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
|
||||
cd /path/to/your/repo
|
||||
set -eu
|
||||
|
||||
# Update the submodule
|
||||
echo "Checking for updates in the settings submodule..."
|
||||
cd settings
|
||||
git checkout master
|
||||
git pull origin master
|
||||
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 commit -m "Updated settings submodule to the latest version"
|
||||
git push
|
||||
echo "Updates committed and pushed."
|
||||
else
|
||||
echo "No updates in the submodule."
|
||||
fi
|
||||
git add settings
|
||||
git commit -m "Updated settings submodule to the latest version"
|
||||
git push
|
||||
|
|
Loading…
Reference in a new issue