diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-21 01:54:17 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-21 01:54:17 -0800 |
| commit | 2dc0f7aaabefc99e8ee26e411f628d80ee45fb7b (patch) | |
| tree | 31e4eeda9c4ffbe50b7946d476c85c057002f245 /etc/uncrustify_check.sh | |
| parent | e5548fb00024af790f4422c86a8b9784909e76f9 (diff) | |
| download | nng-2dc0f7aaabefc99e8ee26e411f628d80ee45fb7b.tar.gz nng-2dc0f7aaabefc99e8ee26e411f628d80ee45fb7b.tar.bz2 nng-2dc0f7aaabefc99e8ee26e411f628d80ee45fb7b.zip | |
More tweaks to script.
Diffstat (limited to 'etc/uncrustify_check.sh')
| -rwxr-xr-x | etc/uncrustify_check.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/uncrustify_check.sh b/etc/uncrustify_check.sh index 881fd121..c51e8880 100755 --- a/etc/uncrustify_check.sh +++ b/etc/uncrustify_check.sh @@ -1,10 +1,14 @@ #!/bin/sh +mydir=`dirname $0` +srcdir=${mydir}/../src +uncrustify --version PATH=${PATH}:/opt/pkg/bin export PATH stat=0 -find src -name '*.[ch]' -print | while read file + +find ${srcdir} -name '*.[ch]' -print | while read file do - uncrustify -c etc/uncrustify.cfg -lC -f $file | colordiff -u $file - + uncrustify -c "${mydir}/uncrustify.cfg" -lC -f $file | colordiff -u $file - if [ $? -ne 0 ] then stat=1 |
