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@0:102b50f941d0, 2018-04-11 (annotated)
- Committer:
- dgabino
- Date:
- Wed Apr 11 14:38:42 2018 +0000
- Revision:
- 0:102b50f941d0
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dgabino | 0:102b50f941d0 | 1 | #!/bin/bash |
dgabino | 0:102b50f941d0 | 2 | |
dgabino | 0:102b50f941d0 | 3 | # Convert file encoding type from dos 2 unix |
dgabino | 0:102b50f941d0 | 4 | find . -regex '.*\.\(cpp\|h\|c\)' -exec dos2unix {} \; |
dgabino | 0:102b50f941d0 | 5 | |
dgabino | 0:102b50f941d0 | 6 | # Remove trailing spaces from source files |
dgabino | 0:102b50f941d0 | 7 | find . -regex '.*\.\(cpp\|h\|c\)' -exec sed -i 's/[ \t]*$//g' {} \; |
dgabino | 0:102b50f941d0 | 8 | |
dgabino | 0:102b50f941d0 | 9 | # Replace tabs with 4-spaces in all source files |
dgabino | 0:102b50f941d0 | 10 | find . -regex '.*\.\(cpp\|h\|c\)' -exec sed -i 's/\t/ /g' {} \; |
dgabino | 0:102b50f941d0 | 11 | |
dgabino | 0:102b50f941d0 | 12 | # indent code |
dgabino | 0:102b50f941d0 | 13 | find . -regex '.*\.\(cpp\|h\|c\)' -exec astyle --indent-switches --indent-cases --pad-oper --pad-comma --add-brackets --indent=spaces=4 -A2 --mode=c {} \; |