Fix uncrustify script
Add explicit path to the root source directory and allow invocation from other directories. Also included qc_sqlite sources but excluded the SQLite sources. Explicitly define the configuration in the MaxScale sources as the one that will be used. Changed from N invocations of uncrustify to one invocation with all files as the program arguments. This should give a slight speedup when formatting all sources.
This commit is contained in:
parent
81a3c73c74
commit
65c50ca8b7
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
for file in $(eval "list-src -x 'qc_sqlite pcre2 build'")
|
||||
do
|
||||
uncrustify --no-backup --replace --mtime $file
|
||||
done
|
||||
currdir=$(dirname $(realpath $0))
|
||||
|
||||
$currdir/list-src -x 'sqlite-src-3110100 pcre2' $currdir/..|xargs uncrustify -c $currdir/../uncrustify.cfg --no-backup --mtime
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user