Skip to content

Utilities

CppPhil edited this page Jan 8, 2017 · 1 revision

code indentation script

The code indentation script indent.sh can be used to easily be able to maintain the RIOTNerf coding style consistenly.

Dependencies

GNU indent

to be able to use the RIOTNerf code indentation script GNU indent is required. it can be installed using

sudo apt-get install indent

Usage

To use the RIOTNerf code indentation script run it as follows:

./indent.sh main.c test.h test.c

You can pass 1 or more .c or .h files containing C source code to the script. All these files will be indented in the RIOTNerf coding style upon execution of the script. Backup files of the original (unmodified) files will be saved and named [file.ext], so the unmodified backup of main.c would be main.c for instance.

Clone this wiki locally