diff options
author | drebs <drebs@riseup.net> | 2011-03-11 14:53:39 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2011-03-11 14:53:39 -0300 |
commit | 01b2048dbf02ac726dabde5e846b9d6ac9aff0e6 (patch) | |
tree | 28f13f07a483a73ffcbfb25e4aba0c40f3d656bb /files | |
download | puppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.gz puppet-bootstrap-01b2048dbf02ac726dabde5e846b9d6ac9aff0e6.tar.bz2 |
initial recommit
Diffstat (limited to 'files')
-rw-r--r-- | files/puppet-add-sarava-submodules | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/files/puppet-add-sarava-submodules b/files/puppet-add-sarava-submodules new file mode 100644 index 0000000..81c8eda --- /dev/null +++ b/files/puppet-add-sarava-submodules @@ -0,0 +1,14 @@ +#!/bin/sh + +git init +git add . + +mkdir -p ./modules + +repos="`lynx -dump http://git.sarava.org/?a=project_index | awk '{ print $1 }' | grep ^puppet-`" +for repo in $repos; do + module="`basename $repo .git | cut -d - -f 2`" + if [ ! -d "modules/$module" ]; then + git submodule add git://git.sarava.org/puppet-$module.git modules/$module + fi +done |