Make "format" recipe less verbose

This commit is contained in:
Jordan Bancino 2022-10-24 13:30:18 -04:00
parent e009536065
commit d32742bb25
1 changed files with 1 additions and 2 deletions

View File

@ -110,7 +110,6 @@ recipe_run() {
# build recipe.
recipe_clean() {
rm -rv build
find . -name '*.orig' -delete
}
# Format the source code by updating the copyright headers and
@ -121,7 +120,7 @@ recipe_format() {
srcHeader=$(grep -n -m 1 '^ \*/' "$src" | cut -d ':' -f 1)
head "-n$srcHeader" "$src" |
diff -u -p - LICENSE.txt |
patch "$src"
patch "$src" | grep -v "^Hmm"
# Format the source code
if indent "$src"; then