0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-21 21:23:08 -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
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
Linux:
stage: test

View file

@ -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
View 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