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
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 {} \;

Loading…
Cancel
Save