Moved all quoting of docs to print functions.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 8s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 8s
This commit is contained in:
parent
ff16e6b5cb
commit
760ebffb6f
37 changed files with 410 additions and 409 deletions
|
|
@ -1,130 +1,130 @@
|
|||
|
||||
MB_AUTOEXEC_SHOW_VERSION ?= off
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_VERSION,"Print OS version on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_VERSION,Print OS version on boot.)
|
||||
|
||||
MB_AUTOEXEC_SHOW_PATH ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_PATH,"Print search path on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_PATH,Print search path on boot.)
|
||||
|
||||
MB_AUTOEXEC_SHOW_INIT ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_INIT,"Print msxbuild init message on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_INIT,Print msxbuild init message on boot.)
|
||||
|
||||
MB_AUTOEXEC_SHOW_HOST ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_HOST,"Print host machine on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_HOST,Print host machine on boot.)
|
||||
|
||||
MB_AUTOEXEC_SHOW_USER ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_USER,"Print host user on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_USER,Print host user on boot.)
|
||||
|
||||
MB_AUTOEXEC_SHOW_FOLDER ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_FOLDER,"Print host folder on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_FOLDER,Print host folder on boot.)
|
||||
|
||||
MB_AUTOEXEC_SHOW_TARGET ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_TARGET,"Print host target on boot.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SHOW_TARGET,Print host target on boot.)
|
||||
|
||||
MB_AUTOEXEC_STARTUP_TIMEOUT ?= 60
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_STARTUP_TIMEOUT,"Startup failure timeout of autoexec.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_STARTUP_TIMEOUT,Startup failure timeout of autoexec.)
|
||||
|
||||
MB_AUTOEXEC_STARTUP_EXITCODE ?= 124
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_STARTUP_EXITCODE,"Startup failure exit code of autoexec.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_STARTUP_EXITCODE,Startup failure exit code of autoexec.)
|
||||
|
||||
MB_AUTOEXEC_SAFE_ASSERT_TIMEOUT ?= 120
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_ASSERT_TIMEOUT,"Safe assert execution failure timeout.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_ASSERT_TIMEOUT,Safe assert execution failure timeout.)
|
||||
|
||||
MB_AUTOEXEC_SAFE_ASSERT_EXITCODE ?= 1
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_ASSERT_EXITCODE,"Safe assert execution failure exit code.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_ASSERT_EXITCODE,Safe assert execution failure exit code.)
|
||||
|
||||
MB_AUTOEXEC_SAFE_CMD_TIMEOUT ?= 300
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_CMD_TIMEOUT,"Safe command execution failure timeout.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_CMD_TIMEOUT,Safe command execution failure timeout.)
|
||||
|
||||
MB_AUTOEXEC_SAFE_CMD_EXITCODE ?= 1
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_CMD_EXITCODE,"Safe command execution failure exit code.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_SAFE_CMD_EXITCODE,Safe command execution failure exit code.)
|
||||
|
||||
MB_AUTOEXEC_STARTUP_NOTE ?=
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_STARTUP_NOTE,"When set this startup note message is shown.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_STARTUP_NOTE,When set this startup note message is shown.)
|
||||
|
||||
MB_AUTOEXEC_COLOR_FG ?= 141
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_COLOR_FG,"Default foreground color if none is given.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_COLOR_FG,Default foreground color if none is given.)
|
||||
|
||||
MB_AUTOEXEC_COLOR_BG ?= 000
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_COLOR_BG,"Default background color if none if given.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_COLOR_BG,Default background color if none if given.)
|
||||
|
||||
MB_AUTOEXEC_EMBED_VARS ?=
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_EMBED_VARS,"List of host env variables to copy to msx as 'MSX_x' variables.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_EMBED_VARS,List of host env variables to copy to msx as 'MSX_x' variables.)
|
||||
|
||||
MB_AUTOEXEC_EMBED_USER ?= USER
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_EMBED_USER,"Embedds this host variable to the msx as 'MB_USER' variable.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_EMBED_USER,Embedds this host variable to the msx as 'MB_USER' variable.)
|
||||
|
||||
MB_AUTOEXEC_TIME_FORMAT ?= 24
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_TIME_FORMAT,"The time format the msx will get set to.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_TIME_FORMAT,The time format the msx will get set to.)
|
||||
|
||||
MB_AUTOEXEC_DATE_FORMAT ?= DD/MM/YY
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_DATE_FORMAT,"The time format the msx will get set to.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_DATE_FORMAT,The time format the msx will get set to.)
|
||||
|
||||
MB_AUTOEXEC_PROMPT_FORMAT ?= %MB_USER%@%_CWD%*
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_PROMPT_FORMAT,"The prompt format for command 2.40 and higher.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_PROMPT_FORMAT,The prompt format for command 2.40 and higher.)
|
||||
|
||||
MB_AUTOEXEC_PROMPT_SPACE ?= on
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_PROMPT_SPACE,"When on adds an white space after the prompt format.")
|
||||
$(call mb-make-call,mb-doc-variable,MB_AUTOEXEC_PROMPT_SPACE,When on adds an white space after the prompt format.)
|
||||
|
||||
|
||||
define mb-autoexec-append-cmd
|
||||
$(MB_ᕽᕽᕽ )echo -e "$(2)\r" >> $(1)/autoexec.bat
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-cmd,"Appends an command.","<dir> <command>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-cmd,Appends an command.,<dir> <command>)
|
||||
|
||||
|
||||
define mb-autoexec-append-echo
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),echo $(subst >,>,$(2)))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-echo,"Appends an echo message.","<dir> <message>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-echo,Appends an echo message.,<dir> <message>)
|
||||
|
||||
|
||||
define mb-autoexec-append-rem
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),rem $(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-rem,"Appends an script remark.","<dir> <remark>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-rem,Appends an script remark.,<dir> <remark>)
|
||||
|
||||
|
||||
define mb-autoexec-append-show-gui
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl headless_show_gui)
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-show-gui,"Appends headless show gui command.","<dir>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-show-gui,Appends headless show gui command.,<dir>)
|
||||
|
||||
|
||||
define mb-autoexec-append-stop-fail
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl fail_after 0)
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-stop-fail,"Appends stop automatic failure command.","<dir>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-stop-fail,Appends stop automatic failure command.,<dir>)
|
||||
|
||||
|
||||
define mb-autoexec-append-exit
|
||||
$(MB_ᕽᕽᕽ )$(if $(filter on,$(MB_FLIGHT_SCREEN)),$(call mb-make-call,mb-autoexec-append-save_screenshot,$(1)))
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl headless_exit)
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-exit,"Appends exit emulation command.","<dir>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-exit,Appends exit emulation command.,<dir>)
|
||||
|
||||
|
||||
define mb-autoexec-append-plug-porta
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl boot_exec_plug_porta $(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-plug-porta,"Appends an plug device into joyporta action.","<dir> <plug-dev>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-plug-porta,Appends an plug device into joyporta action.,<dir> <plug-dev>)
|
||||
|
||||
|
||||
define mb-autoexec-append-plug-portb
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl boot_exec_plug_portb $(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-plug-portb,"Appends an plug device into joyportb action.","<dir> <plug-dev>")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-plug-portb,Appends an plug device into joyportb action.,<dir> <plug-dev>)
|
||||
|
||||
|
||||
define mb-autoexec-append-save-screenshot
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl night_flight_save_screenshot $(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-save-screenshot,"Appends save screenshot command.","<dir> [prefix]")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-save-screenshot,Appends save screenshot command.,<dir> [prefix])
|
||||
|
||||
|
||||
define mb-autoexec-append-save-video
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl night_flight_save_video $(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-save-video,"Appends save video command.","<dir> [prefix]")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-save-video,Appends save video command.,<dir> [prefix])
|
||||
|
||||
|
||||
define mb-autoexec-append-safe-assert
|
||||
|
|
@ -132,7 +132,7 @@ $(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl
|
|||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-echo,$(1),mb::safe assert $(2))
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),$(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-safe-assert,"Appends running a safe assert.","<dir> <cmd> [timeout] [exit-code]")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-safe-assert,Appends running a safe assert.,<dir> <cmd> [timeout] [exit-code])
|
||||
|
||||
|
||||
define mb-autoexec-append-safe-cmd
|
||||
|
|
@ -140,7 +140,7 @@ $(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),omsxctl
|
|||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-echo,$(1),mb::safe command $(2))
|
||||
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-autoexec-append-cmd,$(1),$(2))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-safe-cmd,"Appends running a safe command.","<dir> <cmd> [timeout] [exit-code]")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-append-safe-cmd,Appends running a safe command.,<dir> <cmd> [timeout] [exit-code])
|
||||
|
||||
|
||||
define _mb-autoexec-write-preboot
|
||||
|
|
@ -176,5 +176,5 @@ $(MB_ᕽᕽᕽ )$(if $(filter on,$(MB_AUTOEXEC_SHOW_TARGET)),$(call mb-m
|
|||
$(MB_ᕽᕽᕽ )$(if $(filter on,$(MB_AUTOEXEC_PROMPT_SPACE)),$(call mb-make-call,mb-autoexec-append-cmd,$(1),set PROMPT \"$(value MB_AUTOEXEC_PROMPT_FORMAT)$(MB_MAKE_SPACE)\"))
|
||||
$(MB_ᕽᕽᕽ )$(if $(filter on,$(MB_AUTOEXEC_PROMPT_SPACE)),,$(call mb-make-call,mb-autoexec-append-cmd,$(1),,set PROMPT \"$(value MB_AUTOEXEC_PROMPT_FORMAT)\"))
|
||||
endef
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-write-default,"Write a default autoexec.bat file.","<dir> [fg-color] [bg-color]")
|
||||
$(call mb-make-call,mb-doc-function,mb-autoexec-write-default,Write a default autoexec.bat file.,<dir> [fg-color] [bg-color])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue