Tools: remove unmaintained uncrustify scripts
This commit is contained in:
parent
ca0ae57b56
commit
645ebe21e9
35
reformat.sh
35
reformat.sh
@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
DIR=$1
|
||||
COMMIT=$2
|
||||
|
||||
function do_commit {
|
||||
if [ $COMMIT == 1 ] ;then
|
||||
git commit $1 --author="uncrustify <pat@moreproductive.org>" \
|
||||
--message="uncrustify $1";
|
||||
fi
|
||||
}
|
||||
|
||||
function format_cpp {
|
||||
echo 'format_cpp' $1
|
||||
uncrustify --no-backup -c uncrustify_cpp.cfg $1
|
||||
do_commit $1
|
||||
}
|
||||
|
||||
function format_header {
|
||||
echo 'format_header' $1
|
||||
uncrustify --no-backup -c uncrustify_headers.cfg $1
|
||||
do_commit $1
|
||||
}
|
||||
|
||||
CPPFILES=`find $DIR -name '*.cpp' -print`
|
||||
CFILES=`find $DIR -name '*.c' -print`
|
||||
HFILES=`find $DIR -name '*.h' -print`
|
||||
|
||||
for f in $CPPFILES $CFILES; do
|
||||
format_cpp $f
|
||||
done
|
||||
|
||||
|
||||
for f in $HFILES; do
|
||||
format_header $f
|
||||
done
|
1434
uncrustify_cpp.cfg
1434
uncrustify_cpp.cfg
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user