mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-08-11 10:27:10 +02:00
Backport MaxmindDB.
This commit is contained in:
19
vendor/MaxmindDB/dev-bin/uncrustify-all.sh
vendored
Normal file
19
vendor/MaxmindDB/dev-bin/uncrustify-all.sh
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
uncrustify="uncrustify -c .uncrustify.cfg --replace --no-backup"
|
||||
|
||||
# We indent each thing twice because uncrustify is not idempotent - in some
|
||||
# cases it will flip-flop between two indentation styles.
|
||||
for dir in bin include src t; do
|
||||
c_files=`find $dir -maxdepth 1 -name '*.c'`
|
||||
if [ "$c_files" != "" ]; then
|
||||
$uncrustify $dir/*.c;
|
||||
$uncrustify $dir/*.c;
|
||||
fi
|
||||
|
||||
h_files=`find $dir -maxdepth 1 -name '*.h'`
|
||||
if [ "$h_files" != "" ]; then
|
||||
$uncrustify $dir/*.h;
|
||||
$uncrustify $dir/*.h;
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user