Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Dorier
codes
Commits
8eec1a09
Commit
8eec1a09
authored
Mar 16, 2015
by
Jonathan Jenkins
Browse files
tweaks to reformat tool; doc updates
parent
bc70924c
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/BUILD_STEPS
View file @
8eec1a09
...
...
@@ -19,3 +19,13 @@
4 - (optional) run test programs
make tests && make check
Notes on using uncrustify
-----------------
- version 0.61 is required
- build/install uncrustify from your favorite distro (0.61), OR download from
https://github.com/bengardner/uncrustify and build from source
(configure --prefix /path/to/install && make && make install)
- either use uncrustify directly (see uncrustify --help) or use the provided
reformat.sh tool which is a shim over some of the options (see reformat.sh
-h)
reformat.sh
View file @
8eec1a09
...
...
@@ -18,6 +18,7 @@ USAGE: reformat.sh [-x] [-i] [-c CFG] [-b FILE] {-a | FILE...}
-a: perform recursively on all files ending in .c or .h
if -a not provided, then perform on all files passed in
-x: instead of formatting, check if output format is the same as input
-h: show this help and exit
EOF
}
...
...
@@ -40,7 +41,7 @@ do_recursive=no
do_check
=
no
blacklist
=
while
getopts
":ib:ax"
opt
;
do
while
getopts
":ib:ax
h
"
opt
;
do
case
$opt
in
i
)
do_inplace
=
yes
...
...
@@ -57,6 +58,10 @@ while getopts ":ib:ax" opt; do
x
)
do_check
=
yes
;;
h
)
usage
exit
1
;;
\?
)
usage
error
"invalid argument: -
$OPTARG
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment