Scripts
This commit is contained in:
parent
7f8d9307a1
commit
959d67428b
4 changed files with 46 additions and 0 deletions
33
scripts/find_issues.sh
Normal file
33
scripts/find_issues.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Description:
|
||||
# Search source files for special comment markers (TODO, FIXME, NOTE, HACK)
|
||||
# while excluding certain paths like scripts/ by default.
|
||||
#
|
||||
# Usage:
|
||||
# ./find-comments.sh [path]
|
||||
# path Optional. Defaults to current directory.
|
||||
|
||||
set -e
|
||||
|
||||
# Default search directory
|
||||
DIR="${1:-.}"
|
||||
|
||||
# Tags to search for
|
||||
TAGS='TODO|FIXME|NOTE|HACK|BUG|XXX|OPTIMIZE|REFACTOR|DEPRECATED|UNDONE'
|
||||
|
||||
|
||||
# Excluded directories (can be expanded)
|
||||
EXCLUDES=(
|
||||
'--glob=!scripts/**'
|
||||
'--glob=!build/**'
|
||||
'--glob=!.git/**'
|
||||
)
|
||||
|
||||
# Header
|
||||
echo -e "\033[1;33m🔍 Scanning for: ${TAGS}\033[0m"
|
||||
echo -e "In directory: \033[1;36m$DIR\033[0m"
|
||||
echo
|
||||
|
||||
# Execute ripgrep
|
||||
rg -n --color=always -e "($TAGS)" "${EXCLUDES[@]}" "$DIR"
|
3
scripts/install_qemu.sh
Normal file
3
scripts/install_qemu.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
python "$IDF_PATH"/tools/idf_tools.py install qemu-xtensa
|
7
scripts/install_toolchain.sh
Normal file
7
scripts/install_toolchain.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p ~/esp
|
||||
cd ~/esp || exit
|
||||
git clone -b v5.4.2 --recursive https://github.com/espressif/esp-idf.git
|
||||
cd ~/esp/esp-idf || exit
|
||||
./install.sh esp32 # This is the arch for our mcu (esp-wroom-32)
|
3
scripts/uninstall_toolchain.sh
Normal file
3
scripts/uninstall_toolchain.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm -rf ~/esp
|
Loading…
Add table
Reference in a new issue