summaryrefslogtreecommitdiff
path: root/bin/create_bootstrap_links
blob: a42f7b8038477014d2345792d6a0031cdd40c237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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