mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Added make commands to regenerate commands documentation files and autocompletion data independently of make style
This commit is contained in:
parent
2f1b8eb8f2
commit
b66e2e03fd
2 changed files with 5 additions and 2 deletions
|
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
|
||||||
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
||||||
|
|
||||||
## [unreleased][unreleased]
|
## [unreleased][unreleased]
|
||||||
|
- Added `make commands` to regenerate commands documentation files and autocompletion data independently of `make style` (@doegox)
|
||||||
- Added texecom identification, thanks @en4rab ! (@iceman1001)
|
- Added texecom identification, thanks @en4rab ! (@iceman1001)
|
||||||
- Added `hf 15 slixprotectpage` command
|
- Added `hf 15 slixprotectpage` command
|
||||||
- Fixed `hf mf gload` - missing parameter (@iceman1001)
|
- Fixed `hf mf gload` - missing parameter (@iceman1001)
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -204,6 +204,7 @@ help:
|
||||||
@echo "+ fpga_compress - Make tools/fpga_compress"
|
@echo "+ fpga_compress - Make tools/fpga_compress"
|
||||||
@echo
|
@echo
|
||||||
@echo "+ style - Apply some automated source code formatting rules"
|
@echo "+ style - Apply some automated source code formatting rules"
|
||||||
|
@echo "+ commands - Regenerate commands documentation files and autocompletion data
|
||||||
@echo "+ check - Run offline tests. Set CHECKARGS to pass arguments to the test script"
|
@echo "+ check - Run offline tests. Set CHECKARGS to pass arguments to the test script"
|
||||||
@echo "+ .../check - Run offline tests against specific target. See above."
|
@echo "+ .../check - Run offline tests against specific target. See above."
|
||||||
@echo "+ miscchecks - Detect various encoding issues in source code"
|
@echo "+ miscchecks - Detect various encoding issues in source code"
|
||||||
|
@ -303,7 +304,7 @@ endif
|
||||||
# easy printing of MAKE VARIABLES
|
# easy printing of MAKE VARIABLES
|
||||||
print-%: ; @echo $* = $($*)
|
print-%: ; @echo $* = $($*)
|
||||||
|
|
||||||
style:
|
style: commands
|
||||||
# Make sure astyle is installed
|
# Make sure astyle is installed
|
||||||
@command -v astyle >/dev/null || ( echo "Please install 'astyle' package first" ; exit 1 )
|
@command -v astyle >/dev/null || ( echo "Please install 'astyle' package first" ; exit 1 )
|
||||||
# Remove spaces & tabs at EOL, add LF at EOF if needed on *.c, *.h, *.cpp. *.lua, *.py, *.pl, Makefile, *.v, pm3
|
# Remove spaces & tabs at EOL, add LF at EOF if needed on *.c, *.h, *.cpp. *.lua, *.py, *.pl, Makefile, *.v, pm3
|
||||||
|
@ -317,13 +318,14 @@ style:
|
||||||
--keep-one-line-blocks --max-continuation-indent=60 \
|
--keep-one-line-blocks --max-continuation-indent=60 \
|
||||||
--style=google --pad-oper --unpad-paren --pad-header \
|
--style=google --pad-oper --unpad-paren --pad-header \
|
||||||
--align-pointer=name {} \;
|
--align-pointer=name {} \;
|
||||||
|
|
||||||
|
commands:
|
||||||
# Update commands.md
|
# Update commands.md
|
||||||
[ -x client/proxmark3 ] && client/proxmark3 -m | tr -d '\r' > doc/commands.md
|
[ -x client/proxmark3 ] && client/proxmark3 -m | tr -d '\r' > doc/commands.md
|
||||||
# Make sure python3 is installed
|
# Make sure python3 is installed
|
||||||
@command -v python3 >/dev/null || ( echo "Please install 'python3' package first" ; exit 1 )
|
@command -v python3 >/dev/null || ( echo "Please install 'python3' package first" ; exit 1 )
|
||||||
# Update commands.json, patch port in case it was run under Windows
|
# Update commands.json, patch port in case it was run under Windows
|
||||||
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | sed 's#com[0-9]#/dev/ttyACM0#'|python3 client/pyscripts/pm3_help2json.py - - | tr -d '\r' > doc/commands.json
|
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | sed 's#com[0-9]#/dev/ttyACM0#'|python3 client/pyscripts/pm3_help2json.py - - | tr -d '\r' > doc/commands.json
|
||||||
|
|
||||||
# Update the readline autocomplete autogenerated code
|
# Update the readline autocomplete autogenerated code
|
||||||
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | python3 client/pyscripts/pm3_help2list.py - - | tr -d '\r' > client/src/pm3line_vocabulary.h
|
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | python3 client/pyscripts/pm3_help2list.py - - | tr -d '\r' > client/src/pm3line_vocabulary.h
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue