#!/usr/bin/env bash

if [ ! -d bootstrap ] ; then
    if [ -d clone ] ; then
	if [ ! -d clone/bootstrap ] ; then
	    die "clone exist but clone/bootstrap does not. you have a broken setup that need manual fixing"
	else
	    mv clone/bootstrap bootstrap
	    mv clone bootstrap/.
	    rm -fr rawbuild
	    ./bootstrap/bin/create_bootstrap_links
	fi
    fi
fi


