Index: head/tools/boot/lua-lint.sh =================================================================== --- head/tools/boot/lua-lint.sh (nonexistent) +++ head/tools/boot/lua-lint.sh (revision 329810) @@ -0,0 +1,19 @@ +#!/bin/sh +# $FreeBSD$ + +# Run linter on the lua scripts in stand/lua. luacheck, not currently available +# in ports, must be installed as a dependency. + +die() { + echo $* + exit 1 +} + +LUACHECK=$(which luacheck) + +[ ! -z "${LUACHECK}" ] && [ -e "${LUACHECK}" ] || \ + die "You must have luacheck installed and in your PATH" + +cd $(make -V SRCTOP)/stand +${LUACHECK} . --globals loader --globals lfs --globals io.getchar \ + --globals io.ischar --std lua53 Property changes on: head/tools/boot/lua-lint.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property