diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-01-27 12:06:12 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-01-27 12:06:12 -0200 |
commit | d184f876e67e6ab06055c68a6bfd89064e8a24a2 (patch) | |
tree | 30c20ce8d9edc65eb324aa2765fa76fc9c927f2b /mrconfig.sh | |
parent | bef12b0acdbf4c499d8fd3caa520a5e4f23cb1ec (diff) | |
download | puppet-bootstrap-d184f876e67e6ab06055c68a6bfd89064e8a24a2.tar.gz puppet-bootstrap-d184f876e67e6ab06055c68a6bfd89064e8a24a2.tar.bz2 |
Adding mrconfig script
Diffstat (limited to 'mrconfig.sh')
-rwxr-xr-x | mrconfig.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mrconfig.sh b/mrconfig.sh new file mode 100755 index 0000000..dc4959b --- /dev/null +++ b/mrconfig.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# +# Build a mrconfig for the needed modules. +# + +# Parameters +GIT="git.sarava.org" +URL="https://$GIT/?a=project_index" +CWD="`dirname $0`" + +# Create a new config +echo "" > $CWD/.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 +done |