From bfa954c5ea565fe903aafa2868ddf99bee4ce69f Mon Sep 17 00:00:00 2001 From: david Date: Thu, 13 Sep 2012 00:17:42 +0000 Subject: [PATCH] Add a lua-format Makefile target to format scripts/*.nse. --- Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.in b/Makefile.in index 7524cfda9..d1bee1dcf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -405,6 +405,10 @@ Makefile: Makefile.in config.status config.status: configure ./config.status --recheck +# Run the lua-format program to fix formatting of NSE files. +lua-format: + ./docs/style/lua-format -i scripts/*.nse + makefile.dep: $(CXX) -MM $(CPPFLAGS) $(SRCS) > $@ include makefile.dep @@ -426,3 +430,5 @@ smb-serverstats smb-systeminfo SMTPcommands SMTP_openrelay_test \ smtp-check-vulns SNMPcommunitybrute SNMPsysdescr SQLInject SSH-hostkey \ SSHv1-support SSLv2-support strangeSMTPport UPnP-info xamppDefaultPass \ zoneTrans db2-info db2-brute html-title robots.txt xmpp sql-injection) + +.PHONY: lua-format