osd-contiki/tools/check-contiki-style

9 lines
172 B
Bash
Executable file

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