aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-28 19:26:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-28 19:26:55 -0300
commitc154a1076a6145a28133e9417d842310335d6805 (patch)
treeef16d294172fd448c8291442d13f5b32efe949ff /templates
parentd2331dfe6d46e7e1f824e7692828411e4b7d7d28 (diff)
downloadpuppet-bootstrap-c154a1076a6145a28133e9417d842310335d6805.tar.gz
puppet-bootstrap-c154a1076a6145a28133e9417d842310335d6805.tar.bz2
New submodule scheme
Diffstat (limited to 'templates')
-rw-r--r--templates/bin/puppet-bootstrap34
1 files changed, 0 insertions, 34 deletions
diff --git a/templates/bin/puppet-bootstrap b/templates/bin/puppet-bootstrap
deleted file mode 100644
index b2b8eca..0000000
--- a/templates/bin/puppet-bootstrap
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-function usage {
- echo "Usage: $1 add-submodules <DIR>"
- exit $2
-}
-
-function add_submodules {
- cd $1
- 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 | sed -e s/^puppet-//`"
- if [ ! -d "modules/$module" ]; then
- git submodule add git://git.sarava.org/puppet-$module.git modules/$module
- fi
- done
-
- git submodule update --init
-}
-
-if [ $# -ne 2 ]; then
- usage $0 1
- exit 1
-fi
-
-case $1 in
- add-submodules) add_submodules $2;;
- help) usage $0 0 ;;
- *) usage $0 1; exit 1 ;;
-esac