# /bin/bash

export PATH=$PATH:/tools/gcc-arm-none-eabi-6-2017-q2-update/bin
# Mbed export override the .mbedignore so we save it and restore it at the end of process
cp .mbedignore .mbedignore.back
mbed export -i cmake_gcc_arm
cmake  -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .

# Clean
mv .mbedignore.back .mbedignore
rm -rf CMakeFiles
rm CMakeLists.txt
rm cmake_install.cmake
rm CMakeCache.txt
rm Makefile
rm GettingStarted.html


