Merge pull request #13 from adamdunkels/contiki-code-style-tools
Contiki code style tools update
This commit is contained in:
commit
9f6689e538
9
tools/check-contiki-style
Executable file
9
tools/check-contiki-style
Executable 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/$$
|
|
@ -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 $*
|
||||||
|
|
Loading…
Reference in a new issue