Use internal make file function to empty an file.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 7s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 7s
This commit is contained in:
parent
fbdbdd5b28
commit
729023d32b
2 changed files with 10 additions and 4 deletions
|
|
@ -42,10 +42,16 @@ endif
|
|||
endif
|
||||
|
||||
|
||||
define mb-os-file-create
|
||||
$(MB_ᕽᕽᕽ )echo "" > $(1)
|
||||
define mb-os-file-empty
|
||||
$(MB_ᕽᕽᕽ )$(file >$(1))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-os-file-create,"Creates an empty file.","<file>")
|
||||
$(call mb-make-call,mb-doc-function,mb-os-file-empty,"Makes an file empty.","<file>")
|
||||
|
||||
|
||||
define mb-os-file-append
|
||||
$(MB_ᕽᕽᕽ )$(file >>$(1),$(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-os-file-append,"Appends text to an file","<file> <text>")
|
||||
|
||||
|
||||
define mb-os-file-copy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue