Use /usr/bin/env in bash and python script shebangs

This commit is contained in:
Jordan Mulcahey 2022-01-07 02:29:58 -08:00
parent dff219a037
commit 706d6e2671
35 changed files with 60 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
arm-none-eabi-readelf -s -e .pio/build/nrf52dk/firmware.elf | head -80 arm-none-eabi-readelf -s -e .pio/build/nrf52dk/firmware.elf | head -80
nm -CSr --size-sort .pio/build/nrf52dk/firmware.elf | grep '^200' nm -CSr --size-sort .pio/build/nrf52dk/firmware.elf | grep '^200'

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/usr/bin/python2 #!/usr/bin/env python2
# This is a layout for 4MB of flash # This is a layout for 4MB of flash
# Name, Type, SubType, Offset, Size, Flags # Name, Type, SubType, Offset, Size, Flags

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
# You probably don't want to use this script, it programs a custom bootloader build onto a nrf52 board # You probably don't want to use this script, it programs a custom bootloader build onto a nrf52 board
set -e set -e

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
# You probably don't want to use this script, it programs a custom bootloader build onto a nrf52 board # You probably don't want to use this script, it programs a custom bootloader build onto a nrf52 board
set -e set -e

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
mosquitto_sub -h mqtt.meshtastic.org -v -t \$SYS/\# -t msh/+/stat/\# -t msh/+/json/\# mosquitto_sub -h mqtt.meshtastic.org -v -t \$SYS/\# -t msh/+/stat/\# -t msh/+/json/\#
# mosquitto_sub -h test.mosquitto.org -v -t mesh/\# -F "%j" # mosquitto_sub -h test.mosquitto.org -v -t mesh/\# -F "%j"

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
mosquitto_pub -h mqtt.meshtastic.org -u meshdev -P large4cats -t msh/1/stat/FakeNode -m online -d mosquitto_pub -h mqtt.meshtastic.org -u meshdev -P large4cats -t msh/1/stat/FakeNode -m online -d

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
pio run --environment native pio run --environment native
gdbserver --once localhost:2345 .pio/build/native/program "$@" gdbserver --once localhost:2345 .pio/build/native/program "$@"

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
pio run --environment native pio run --environment native
.pio/build/native/program "$@" .pio/build/native/program "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# JLinkRTTViewer # JLinkRTTViewer
JLinkRTTClient JLinkRTTClient

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52832_XXAA JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52832_XXAA

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52833_XXAA JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52833_XXAA

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52840_XXAA -SuppressInfoUpdateFW -DisableAutoUpdateFW -rtos GDBServer/RTOSPlugin_FreeRTOS JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52840_XXAA -SuppressInfoUpdateFW -DisableAutoUpdateFW -rtos GDBServer/RTOSPlugin_FreeRTOS

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
esptool.py --baud 921600 write_flash 0x10000 release/archive/old/firmware-tbeam-EU865-1.0.0.bin esptool.py --baud 921600 write_flash 0x10000 release/archive/old/firmware-tbeam-EU865-1.0.0.bin
echo "Erasing the otadata partition, which will turn off flash flippy-flop and force the first image to be used" echo "Erasing the otadata partition, which will turn off flash flippy-flop and force the first image to be used"
esptool.py --baud 921600 erase_region 0xe000 0x2000 esptool.py --baud 921600 erase_region 0xe000 0x2000

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
esptool.py --baud 921600 write_flash 0x10000 release/archive/old/firmware-tbeam-1.1.50.bin esptool.py --baud 921600 write_flash 0x10000 release/archive/old/firmware-tbeam-1.1.50.bin

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -e set -e

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -e set -e

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -e set -e

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
echo "This script is only for developers who are publishing new builds on github. Most users don't need it" echo "This script is only for developers who are publishing new builds on github. Most users don't need it"

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
# You probably don't need this - it is a basic test of the serial flash on the TTGO eink board # You probably don't need this - it is a basic test of the serial flash on the TTGO eink board
nrfjprog --qspiini nrf52/ttgo_eink_qpsi.ini --qspieraseall nrfjprog --qspiini nrf52/ttgo_eink_qpsi.ini --qspieraseall

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
esptool.py --baud 921600 read_flash 0x1000 0xf000 system-info.img esptool.py --baud 921600 read_flash 0x1000 0xf000 system-info.img

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
pio run --upload-port /dev/ttyUSB0 -t upload -t monitor pio run --upload-port /dev/ttyUSB0 -t upload -t monitor

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
pio run --upload-port /dev/ttyUSB1 -t upload -t monitor pio run --upload-port /dev/ttyUSB1 -t upload -t monitor

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
echo uploading to usb1 echo uploading to usb1

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
TARG=tbeam TARG=tbeam

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# /home/kevinh/.platformio/packages/tool-openocd-esp32/bin/openocd -s /home/kevinh/.platformio/packages/tool-openocd-esp32 -c gdb_port pipe; tcl_port disabled; telnet_port disabled -s /home/kevinh/.platformio/packages/tool-openocd-esp32/share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg # /home/kevinh/.platformio/packages/tool-openocd-esp32/bin/openocd -s /home/kevinh/.platformio/packages/tool-openocd-esp32 -c gdb_port pipe; tcl_port disabled; telnet_port disabled -s /home/kevinh/.platformio/packages/tool-openocd-esp32/share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg
/home/kevinh/.platformio/packages/tool-openocd-esp32/bin/openocd -s /home/kevinh/.platformio/packages/tool-openocd-esp32 -s /home/kevinh/.platformio/packages/tool-openocd-esp32/share/openocd/scripts -f interface/jlink.cfg -f ./lora32-openocd.cfg /home/kevinh/.platformio/packages/tool-openocd-esp32/bin/openocd -s /home/kevinh/.platformio/packages/tool-openocd-esp32 -s /home/kevinh/.platformio/packages/tool-openocd-esp32/share/openocd/scripts -f interface/jlink.cfg -f ./lora32-openocd.cfg

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
pio device monitor -b 921600 pio device monitor -b 921600

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
pio device monitor -p /dev/ttyUSB1 -b 921600 pio device monitor -p /dev/ttyUSB1 -b 921600

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
echo "Starting simulator" echo "Starting simulator"

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
echo "building for t-echo" echo "building for t-echo"

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
echo "Converting to uf2 for NRF52 Adafruit bootloader" echo "Converting to uf2 for NRF52 Adafruit bootloader"

View File

@ -1 +1,3 @@
#!/usr/bin/env bash
pio run --upload-port /dev/ttyUSB1 -t upload pio run --upload-port /dev/ttyUSB1 -t upload

View File

@ -1,2 +1,4 @@
#!/usr/bin/env bash
echo using amap tool to display memory map echo using amap tool to display memory map
amap .pio/build/output.map amap .pio/build/output.map