Merge pull request #173 from tstromberg/makefile
Makefile: Add reformat-updates target
This commit is contained in:
commit
059bdbb649
4
Makefile
4
Makefile
|
@ -24,4 +24,8 @@ out/odk-packs.zip: packs
|
|||
reformat:
|
||||
find . -type f -name "*.sql" | perl -ne 'chomp; system("cp $$_ /tmp/fix.sql && npx sql-formatter -l sqlite /tmp/fix.sql > $$_");'
|
||||
|
||||
.PHONY: reformat-updates
|
||||
reformat-updates:
|
||||
git status -s | awk '{ print $$2 }' | grep ".sql" | perl -ne 'chomp; system("cp $$_ /tmp/fix.sql && npx sql-formatter -l sqlite /tmp/fix.sql > $$_");'
|
||||
|
||||
all: out/odk-packs.zip
|
||||
|
|
Loading…
Reference in New Issue