diff options
Diffstat (limited to 'bin/create_bootstrap_links')
-rwxr-xr-x | bin/create_bootstrap_links | 15 |
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 |