toxcore/other/astyle/format-source
iphydf c597f67012
Add format-source script.
This is easier to use from a precommit hook, so it can be used to ensure that
all formatting is correct before committing code.
2016-08-20 00:39:18 +01:00

10 lines
245 B
Bash
Executable File

#!/bin/sh
if [ -z "$ASTYLE" ]; then
ASTYLE=astyle
fi
SOURCES=`find . -name "*.[ch]" -and -not -name "*.in.*" -and -not -wholename "*crypto_pwhash*" -and -not -wholename "./super_donators/*"`
$ASTYLE --options=other/astyle/astylerc $SOURCES