1#!/bin/bash
2
3cd $(dirname $0)
4
5# if threadx repo does not exist, clone it
6[ -d ../threadx ] || git clone https://github.com/eclipse-threadx/threadx.git ../threadx --depth 1
7[ -d ../filex ] || git clone https://github.com/eclipse-threadx/filex.git ../filex --depth 1
8[ -f .run.sh ] || ln -sf ../threadx/scripts/cmake_bootstrap.sh .run.sh
9./.run.sh $*
10