RetroArch/libretro-db/check_style

8 lines
250 B
Plaintext
Raw Normal View History

2015-01-19 21:47:09 +00:00
#!/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