make: utilisation d'un alias pour "git submodule foreach"
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,3 +1,5 @@
|
||||
GSF=git submodule foreach
|
||||
|
||||
all: rebuild-switch
|
||||
date
|
||||
##--------- Commandes spécifiques pour NixOS
|
||||
@@ -37,15 +39,16 @@ push: submodules-push
|
||||
|
||||
submodules-update:
|
||||
#git submodule update --remote
|
||||
git submodule foreach git co master
|
||||
git submodule foreach git ff
|
||||
$(GSF) git co master
|
||||
$(GSF) git ff
|
||||
$(GSF) git gc --auto
|
||||
|
||||
submodules-push:
|
||||
git submodule foreach git push --all
|
||||
git submodule foreach git push --tags
|
||||
$(GSF) git push --all
|
||||
$(GSF) git push --tags
|
||||
|
||||
submodules-tag:
|
||||
git submodule foreach git tag -f "$$(date +%F)-$$(hostname -s)"
|
||||
$(GSF) git tag -f "$$(date +%F)-$$(hostname -s)"
|
||||
|
||||
template:
|
||||
find . -name "*.nix" -exec meld /etc/nixos/base/module-template.nix {} \;
|
||||
|
||||
Reference in New Issue
Block a user