blob: dc4959b31da446b8c5f4b21ce0641951df842063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|