aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-01-27 12:06:12 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-01-27 12:06:12 -0200
commitd184f876e67e6ab06055c68a6bfd89064e8a24a2 (patch)
tree30c20ce8d9edc65eb324aa2765fa76fc9c927f2b
parentbef12b0acdbf4c499d8fd3caa520a5e4f23cb1ec (diff)
downloadpuppet-bootstrap-d184f876e67e6ab06055c68a6bfd89064e8a24a2.tar.gz
puppet-bootstrap-d184f876e67e6ab06055c68a6bfd89064e8a24a2.tar.bz2
Adding mrconfig script
-rwxr-xr-xmrconfig.sh21
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