RetroArch/libretro-db/check_style
2015-02-19 00:47:19 +01:00

8 lines
250 B
Bash
Executable File

#!/bin/bash
uncrustify -c uncrustify.cfg *.c *.h
for f in *.uncrustify; do
source_file=$(basename "$f" .uncrustify);
cmp "$source_file" "$f" || (read -p "Style violations in '$source_file'" && vimdiff "$source_file" "$f");
done;
rm -f *.uncrustify