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:
Markus Mäkelä 2018-09-11 07:35:08 +03:00
parent 81a3c73c74
commit 65c50ca8b7
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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