mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Updated script per suggestion by @g-oikonomou to allow script to operate on files in subdirectories
This commit is contained in:
parent
9131c4183b
commit
f6f9df802c
@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
f=`basename $1`
|
||||
mkdir /tmp/$$
|
||||
cp $1 /tmp/$$/
|
||||
cp $1 /tmp/$$/$1.orig
|
||||
cp $1 /tmp/$$/$f.orig
|
||||
export INDENT_PROFILE=`dirname $0`/indent.pro
|
||||
indent /tmp/$$/$1
|
||||
diff /tmp/$$/$1.orig /tmp/$$/$1
|
||||
indent /tmp/$$/$f
|
||||
diff /tmp/$$/$f.orig /tmp/$$/$f
|
||||
rm -rf /tmp/$$
|
||||
|
Loading…
Reference in New Issue
Block a user