From 66d41c82b30a511b5dc4d12b9fdcd298b2d8b603 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Mar 2014 14:59:10 -0300 Subject: Adding 'subtrees' target --- Makefile | 3 +++ TODO.md | 1 - bin/submodules | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8378624..7971008 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,9 @@ modules: submodules: bin/submodules +subtrees: + bin/subtrees + remote: git remote add bootstrap $(REPO) diff --git a/TODO.md b/TODO.md index c213071..bc3b32b 100644 --- a/TODO.md +++ b/TODO.md @@ -2,4 +2,3 @@ TODO ==== * Make "config" target, refactoring config.pp and default_conf.pp. -* Make "subtrees" target, including all puppet modules as subtrees. diff --git a/bin/submodules b/bin/submodules index c33e74e..f004f2b 100755 --- a/bin/submodules +++ b/bin/submodules @@ -19,6 +19,7 @@ repos="`grep = $DIRNAME/../.mrconfig | cut -d = -f 2 | cut -d ' ' -f 4`" for repo in $repos; do module="`basename $repo .git | sed -e s/^puppet-//`" if [ ! -d "modules/$module" ]; then + echo "Processing puppet module $module..." git submodule add $repo modules/$module fi done -- cgit v1.2.3