tools: Executables attribute is redundant in the yaml file.
This commit is contained in:
parent
45200a706f
commit
08c2b1f04c
2 changed files with 4 additions and 20 deletions
|
|
@ -634,12 +634,13 @@ def godoc(path):
|
|||
return Status.normal, fill3.Text(stdout)
|
||||
|
||||
|
||||
def make_tool_function(dependencies, url, executables, command,
|
||||
success_status=None, error_status=None):
|
||||
def make_tool_function(dependencies, url, command, success_status=None,
|
||||
error_status=None):
|
||||
command = command.split()
|
||||
executables = set([command[0]])
|
||||
success_status = None if success_status is None else Status[success_status]
|
||||
error_status = None if error_status is None else Status[error_status]
|
||||
@deps(deps=set(dependencies), url=url, executables=set(executables))
|
||||
@deps(deps=set(dependencies), url=url, executables=executables)
|
||||
def func(path):
|
||||
return _run_command(command + [path], success_status, error_status)
|
||||
return func
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
# :
|
||||
# dependencies: []
|
||||
# url:
|
||||
# executables: []
|
||||
# command:
|
||||
# success_status:
|
||||
# error_status:
|
||||
|
|
@ -13,106 +12,90 @@
|
|||
objdump_headers:
|
||||
dependencies: [binutils]
|
||||
url: https://en.wikipedia.org/wiki/Objdump
|
||||
executables: [objdump]
|
||||
command: objdump --all-headers
|
||||
success_status: normal
|
||||
|
||||
objdump_disassemble:
|
||||
dependencies: [binutils]
|
||||
url: https://en.wikipedia.org/wiki/Objdump
|
||||
executables: [objdump]
|
||||
command: objdump --disassemble --reloc --dynamic-reloc
|
||||
success_status: normal
|
||||
|
||||
readelf:
|
||||
dependencies: [binutils]
|
||||
url: https://en.wikipedia.org/wiki/Objdump
|
||||
executables: [readelf]
|
||||
command: readelf --all
|
||||
success_status: normal
|
||||
|
||||
unzip:
|
||||
dependencies: [unzip]
|
||||
url: unzip
|
||||
executables: [unzip]
|
||||
command: unzip -l
|
||||
success_status: normal
|
||||
|
||||
tar_gz:
|
||||
dependencies: [tar]
|
||||
url: http://www.gnu.org/software/tar/manual/tar.html
|
||||
executables: [tar]
|
||||
command: tar ztvf
|
||||
success_status: normal
|
||||
|
||||
tar_bz2:
|
||||
dependencies: [tar]
|
||||
url: http://www.gnu.org/software/tar/manual/tar.html
|
||||
executables: [tar]
|
||||
command: tar jtvf
|
||||
success_status: normal
|
||||
|
||||
nm:
|
||||
dependencies: [binutils]
|
||||
url: https://linux.die.net/man/1/nm
|
||||
executables: [nm]
|
||||
command: nm --demangle
|
||||
success_status: normal
|
||||
|
||||
pdf2txt:
|
||||
dependencies: [python-pdfminer]
|
||||
url: python-pdfminer
|
||||
executables: [pdf2txt]
|
||||
command: pdf2txt
|
||||
success_status: normal
|
||||
|
||||
html2text:
|
||||
dependencies: [html2text]
|
||||
url: html2text
|
||||
executables: [html2text]
|
||||
command: html2text
|
||||
success_status: normal
|
||||
|
||||
c_syntax_gcc:
|
||||
dependencies: [gcc, g++-6]
|
||||
url: https://gcc.gnu.org/
|
||||
executables: [gcc]
|
||||
command: gcc -fsyntax-only
|
||||
|
||||
cpp_syntax_gcc:
|
||||
dependencies: [gcc, g++-6]
|
||||
url: https://gcc.gnu.org/
|
||||
executables: [gcc]
|
||||
command: gcc -fsyntax-only
|
||||
|
||||
php7_syntax:
|
||||
dependencies: [php7.2-cli]
|
||||
url: https://en.wikipedia.org/wiki/PHP
|
||||
executables: [php7.2]
|
||||
command: php7.2 --syntax-check
|
||||
|
||||
shellcheck:
|
||||
dependencies: [shellcheck]
|
||||
url: shellcheck
|
||||
executables: [shellcheck]
|
||||
command: shellcheck
|
||||
|
||||
cppcheck:
|
||||
dependencies: [cppcheck]
|
||||
url: cppcheck
|
||||
executables: [cppcheck]
|
||||
command: cppcheck
|
||||
|
||||
gofmt:
|
||||
dependencies: [golang-go]
|
||||
url: golang-go
|
||||
executables: [gofmt]
|
||||
command: gofmt
|
||||
success_status: normal
|
||||
|
||||
go_vet:
|
||||
dependencies: [golang-go]
|
||||
url: golang-go
|
||||
executables: [go]
|
||||
command: go vet
|
||||
error_status: normal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue