Host driver/HAL to build a LoRa Picocell Gateway which communicates through USB with a concentrator board based on Semtech SX1308 multi-channel modem and SX1257/SX1255 RF transceivers.

lora_indent.sh

Committer:
dgabino
Date:
2018-04-11
Revision:
0:102b50f941d0

File content as of revision 0:102b50f941d0:

#!/bin/bash

# Convert file encoding type from dos 2 unix
find . -regex '.*\.\(cpp\|h\|c\)' -exec dos2unix {} \;

# Remove trailing spaces from source files
find . -regex '.*\.\(cpp\|h\|c\)' -exec sed -i 's/[ \t]*$//g' {} \;

# Replace tabs with 4-spaces in all source files
find . -regex '.*\.\(cpp\|h\|c\)' -exec sed -i 's/\t/    /g' {} \;

# indent code
find . -regex '.*\.\(cpp\|h\|c\)' -exec astyle --indent-switches --indent-cases --pad-oper --pad-comma --add-brackets --indent=spaces=4 -A2 --mode=c  {} \;