mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
make style: test for astyle presence
This commit is contained in:
parent
221936196e
commit
d21302d39c
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -106,6 +106,7 @@ endif
|
||||||
print-%: ; @echo $* = $($*)
|
print-%: ; @echo $* = $($*)
|
||||||
|
|
||||||
style:
|
style:
|
||||||
|
@which astyle >/dev/null || ( echo "Please install 'astyle' package first" ; exit 1 )
|
||||||
find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "Makefile" \) -exec perl -pi -e 's/[ \t\r]+$$//' {} \;
|
find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "Makefile" \) -exec perl -pi -e 's/[ \t\r]+$$//' {} \;
|
||||||
find . \( -name "*.[ch]" -or -name "*.cpp" \) -exec astyle --formatted --mode=c --suffix=none \
|
find . \( -name "*.[ch]" -or -name "*.cpp" \) -exec astyle --formatted --mode=c --suffix=none \
|
||||||
--indent=spaces=4 --indent-switches --indent-preprocessor \
|
--indent=spaces=4 --indent-switches --indent-preprocessor \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue