diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-01-27 13:42:35 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-01-27 13:42:35 -0200 |
commit | 6733898a5e2a5ed38c89037767c848f5206351c4 (patch) | |
tree | cdcb685f46dc99b2500ea35a583311ff3c9afe5e /mrconfig.sh | |
parent | d184f876e67e6ab06055c68a6bfd89064e8a24a2 (diff) | |
download | puppet-bootstrap-6733898a5e2a5ed38c89037767c848f5206351c4.tar.gz puppet-bootstrap-6733898a5e2a5ed38c89037767c848f5206351c4.tar.bz2 |
Updated mrconfig.sh and sample .mrconfig
Diffstat (limited to 'mrconfig.sh')
-rwxr-xr-x | mrconfig.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mrconfig.sh b/mrconfig.sh index dc4959b..3ea3646 100755 --- a/mrconfig.sh +++ b/mrconfig.sh @@ -6,16 +6,22 @@ # Parameters GIT="git.sarava.org" URL="https://$GIT/?a=project_index" -CWD="`dirname $0`" +CWD="`pwd`" +WORK="`dirname $0`" # Create a new config -echo "" > $CWD/.mrconfig +cd $WORK +rm -f .mrconfig +touch .mrconfig # Fetch repository list and updtate mrconfig curl --stderr - $URL | grep "^puppet-" | while read module; do folder="`echo $module | sed -e 's/^puppet-//'`" folder="`basename $folder .git`" - echo "[$folder]" >> $CWD/.mrconfig - echo " checkout = git clone git://$GIT/$module $folder" >> $CWD/.mrconfig + echo "Processing $folder..." + mr config puppet/modules/$folder checkout="git clone git://$GIT/$module $folder" done + +# Teardown +cd $CWD |