From ec24734b05b2c0bac731159cdb5edd08027bd7e5 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Fri, 11 Nov 2016 11:26:59 +0100 Subject: [PATCH] make: utilisation d'un alias pour "git submodule foreach" --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bb2333f..ef21cd4 100644 --- a/Makefile +++ b/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 {} \;