make: utilisation d'un alias pour "git submodule foreach"

pull/7/head 2016-11-11-pedro
Jean-Pierre PRUNARET 9 years ago
parent ac8e92cfce
commit ec24734b05

@ -1,3 +1,5 @@
GSF=git submodule foreach
all: rebuild-switch all: rebuild-switch
date date
##--------- Commandes spécifiques pour NixOS ##--------- Commandes spécifiques pour NixOS
@ -37,15 +39,16 @@ push: submodules-push
submodules-update: submodules-update:
#git submodule update --remote #git submodule update --remote
git submodule foreach git co master $(GSF) git co master
git submodule foreach git ff $(GSF) git ff
$(GSF) git gc --auto
submodules-push: submodules-push:
git submodule foreach git push --all $(GSF) git push --all
git submodule foreach git push --tags $(GSF) git push --tags
submodules-tag: submodules-tag:
git submodule foreach git tag -f "$$(date +%F)-$$(hostname -s)" $(GSF) git tag -f "$$(date +%F)-$$(hostname -s)"
template: template:
find . -name "*.nix" -exec meld /etc/nixos/base/module-template.nix {} \; find . -name "*.nix" -exec meld /etc/nixos/base/module-template.nix {} \;

Loading…
Cancel
Save