0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-21 21:23:08 -05:00

Added settings submodule

This commit is contained in:
Bert van der Weerd 2023-11-14 19:53:25 +01:00
parent e5762e9d5b
commit 3379ed0351
No known key found for this signature in database
GPG key ID: 73370A0B9E5516B0
4 changed files with 29 additions and 3 deletions

3
.gitmodules vendored
View file

@ -0,0 +1,3 @@
[submodule "settings"]
path = settings
url = https://codeberg.org/librewolf/settings.git

View file

@ -117,9 +117,9 @@ def librewolf_patches():
exec('mkdir -p lw')
enter_srcdir('lw')
exec('wget -q https://codeberg.org/librewolf/settings/raw/branch/master/librewolf.cfg')
exec('wget -q https://codeberg.org/librewolf/settings/raw/branch/master/distribution/policies.json')
exec('wget -q https://codeberg.org/librewolf/settings/raw/branch/master/defaults/pref/local-settings.js')
exec('cp -v ../../settings/librewolf.cfg .')
exec('cp -v ../../settings/distribution/policies.json .')
exec('cp -v ../../settings/defaults/pref/local-settings.js .')
leave_srcdir();

View file

@ -0,0 +1,22 @@
#!/bin/bash
# Navigate to the root directory of your repository
cd /path/to/your/repo
# 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

1
settings Submodule

@ -0,0 +1 @@
Subproject commit b587388bdbe63511c478cb8b5f82c2e80040414c