mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 05:33:03 -05:00
Added settings submodule
This commit is contained in:
parent
e5762e9d5b
commit
3379ed0351
4 changed files with 29 additions and 3 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "settings"]
|
||||||
|
path = settings
|
||||||
|
url = https://codeberg.org/librewolf/settings.git
|
|
@ -117,9 +117,9 @@ def librewolf_patches():
|
||||||
|
|
||||||
exec('mkdir -p lw')
|
exec('mkdir -p lw')
|
||||||
enter_srcdir('lw')
|
enter_srcdir('lw')
|
||||||
exec('wget -q https://codeberg.org/librewolf/settings/raw/branch/master/librewolf.cfg')
|
exec('cp -v ../../settings/librewolf.cfg .')
|
||||||
exec('wget -q https://codeberg.org/librewolf/settings/raw/branch/master/distribution/policies.json')
|
exec('cp -v ../../settings/distribution/policies.json .')
|
||||||
exec('wget -q https://codeberg.org/librewolf/settings/raw/branch/master/defaults/pref/local-settings.js')
|
exec('cp -v ../../settings/defaults/pref/local-settings.js .')
|
||||||
leave_srcdir();
|
leave_srcdir();
|
||||||
|
|
||||||
|
|
||||||
|
|
22
scripts/update_settings.sh
Normal file
22
scripts/update_settings.sh
Normal 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
1
settings
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b587388bdbe63511c478cb8b5f82c2e80040414c
|
Loading…
Reference in a new issue