X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=meson.build;h=85d16122bee0af3abb797a65312e304f18b98fe9;hb=55e4634a2a6a681646d33530ce66b6ce9cf06e3b;hp=14580158dc6f1a685b1c9159753618ef0d98ff78;hpb=33f0918cde36accb606271c379bc8e75973e9d59;p=tinc diff --git a/meson.build b/meson.build index 14580158..85d16122 100644 --- a/meson.build +++ b/meson.build @@ -138,12 +138,13 @@ if os_name == 'linux' and not opt_systemd.disabled() subdir('systemd') endif -prog_reformat = find_program('astyle', native: true, required: false) -if prog_reformat.found() - run_target('reformat', command: [ - prog_reformat, - '--options=@SOURCE_ROOT@/.astylerc', '--recursive', - '@SOURCE_ROOT@/*.c', '@SOURCE_ROOT@/*.h', - ]) -endif - +run_target('reformat', command: [ + python, + '@SOURCE_ROOT@/lint.py', + '--fix', +]) + +run_target('lint', command: [ + python, + '@SOURCE_ROOT@/lint.py', +])