summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-11-27 14:13:18 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-30 20:25:22 -0600
commitdc0370ab525d338f88e0dc11d54bab10a5956dbc (patch)
tree3016ba7c1bdec6c8c770cc59efee3b834f6ebc69 /bin
parentf797994afe9d645fcf6d5fd6572e0a0af39fd6a3 (diff)
add a script to generate the links in bootstrap
Diffstat (limited to 'bin')
-rwxr-xr-xbin/create_bootstrap_links15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/create_bootstrap_links b/bin/create_bootstrap_links
new file mode 100755
index 000000000000..a42f7b803847
--- /dev/null
+++ b/bin/create_bootstrap_links
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+BIN_DIR=$(dirname $0)
+REPOS=$(cat ${BIN_DIR?}/repo-list)
+cd ${BIN_DIR?}/..
+BOOTSTRAP_DIR=$(pwd)
+
+for repo in $REPOS ; do
+ for link in $(ls clone/${repo}) ; do
+ if [ ! -e "$link" ] ; then
+ echo "Creating missing link $link"
+ ln -s "clone/${repo}/$link" "$link"
+ fi
+ done
+done