run.sh 320 B

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