mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
c597f67012
This is easier to use from a precommit hook, so it can be used to ensure that all formatting is correct before committing code.
10 lines
245 B
Bash
Executable File
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
|