2022-04-19T19:58:40

This commit is contained in:
2022-04-19 19:58:41 +09:00
parent 25752057b1
commit f405181219
26 changed files with 632 additions and 7 deletions

43
05_time/run Executable file
View File

@@ -0,0 +1,43 @@
#!/usr/bin/bash
export PICO_SDK_PATH="/media/elex/UltraFit/pico-sdk"
function fn_clean {
if [ -d ./build ]
then
rm -r ./build
fi
mkdir build
}
function fn_cmake {
cd build
cmake ..
cd ..
}
function fn_make {
cd build
make
cd ..
}
if [ -z $1 ]
then
fn_clean
fn_cmake
fn_make
elif [ $1 == 'clean' ]
then
echo 'Cleaning build dir.'
fn_clean
elif [ $1 == 'cmake' ]
then
echo 'Exec cmake'
fn_cmake
elif [ $1 == 'make' ]
then
echo 'Exec make'
fn_make
else
echo 'What do you want???'
fi