Merge pull request #13 from adamdunkels/contiki-code-style-tools

Contiki code style tools update
This commit is contained in:
Fredrik Österlind 2012-11-21 02:49:32 -08:00
commit 9f6689e538
2 changed files with 10 additions and 1 deletions

9
tools/check-contiki-style Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
f=`basename $1`
mkdir /tmp/$$
cp $1 /tmp/$$/
cp $1 /tmp/$$/$f.orig
export INDENT_PROFILE=`dirname $0`/indent.pro
indent /tmp/$$/$f
diff /tmp/$$/$f.orig /tmp/$$/$f
rm -rf /tmp/$$

View file

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
export INDENT_PROFILE=`dirname $0`/indent.pro export INDENT_PROFILE=`dirname $0`/indent.pro
indent $1 indent $*