From bbb2a93d1516ef3f92f1150895dbddc9d924e454 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 28 Dec 2021 21:43:45 +0100 Subject: make: use POSIX check-format --- tools/check-format | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tools/check-format (limited to 'tools/check-format') diff --git a/tools/check-format b/tools/check-format new file mode 100755 index 0000000..392d023 --- /dev/null +++ b/tools/check-format @@ -0,0 +1,8 @@ +#!/bin/sh + +LUA_FILE=$1 +lua-format "${LUA_FILE}" > "${LUA_FILE}.fmt" +diff "${LUA_FILE}" "${LUA_FILE}.fmt" +RET=$? +rm "${LUA_FILE}.fmt" +exit ${RET} -- cgit v1.2.3