Merge pull request #358 from bobbycar-graz/move-configs

This commit is contained in:
CommanderRedYT
2022-09-18 12:04:49 +02:00
committed by GitHub
25 changed files with 3 additions and 16 deletions

View File

@@ -1,19 +1,6 @@
#!/bin/bash #!/bin/bash
VALID_CONFIGS=( VALID_CONFIGS=($(ls configs/ | grep ".cmake" | sed 's/config_//;s/.cmake//'))
"comred"
"peter"
"feedc0de"
"mick"
"greyhash"
"nofeatures"
"allfeatures"
"seatbot"
"gernot"
"comred_new"
"aveexy"
"testdevice"
)
print_usage() { print_usage() {
echo "usage: ./switchconf.sh ${VALID_CONFIGS[@]}" echo "usage: ./switchconf.sh ${VALID_CONFIGS[@]}"
@@ -86,7 +73,7 @@ else
fi fi
ln -vs "build_$1" "build" ln -vs "build_$1" "build"
ln -vs "sdkconfig_$1" "sdkconfig" ln -vs "configs/sdkconfig_$1" "sdkconfig"
ln -vs "config_$1.cmake" "config.cmake" ln -vs "configs/config_$1.cmake" "config.cmake"
echo all ok echo all ok