From dc0370ab525d338f88e0dc11d54bab10a5956dbc Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 27 Nov 2010 14:13:18 -0600 Subject: add a script to generate the links in bootstrap --- bin/create_bootstrap_links | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/create_bootstrap_links (limited to 'bin') 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 -- cgit