Moved and i18n the package archive function.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -6s

This commit is contained in:
Willem Cazander 2024-07-10 17:48:15 +02:00
parent ded142d36e
commit e619ac8de7
5 changed files with 13 additions and 9 deletions

View file

@ -25,6 +25,7 @@ MB_I18N_ASSERT_SUCCESS = アサート成功
MB_I18N_AUTOEXEC_WRITE = 自動実行の書き込み MB_I18N_AUTOEXEC_WRITE = 自動実行の書き込み
MB_I18N_CONV_UNIX2DOS = ディスクシステムの行末に変換 MB_I18N_CONV_UNIX2DOS = ディスクシステムの行末に変換
MB_I18N_CONV_DOS2UNIX = メインフレームラインエンドに変換 MB_I18N_CONV_DOS2UNIX = メインフレームラインエンドに変換
MB_I18N_PACKAGE_CREATE_ARCHIVE = ビルド配布アーカイブ
MB_I18N_MAKE_CHECK_ARG1 = 引数 一 がありません MB_I18N_MAKE_CHECK_ARG1 = 引数 一 がありません
MB_I18N_MAKE_CHECK_ARG2 = 引数 二 がありません MB_I18N_MAKE_CHECK_ARG2 = 引数 二 がありません
MB_I18N_MAKE_CHECK_ARG3 = 引数 三 がありません MB_I18N_MAKE_CHECK_ARG3 = 引数 三 がありません

View file

@ -11,6 +11,9 @@ $(call mb_make_call,mb_doc_variable_i18n,MB_I18N_CONV_UNIX2DOS,"Message for when
MB_I18N_CONV_DOS2UNIX ?= Convert to nix-EOL MB_I18N_CONV_DOS2UNIX ?= Convert to nix-EOL
$(call mb_make_call,mb_doc_variable_i18n,MB_I18N_CONV_DOS2UNIX,"Message for when converting a file to unix.") $(call mb_make_call,mb_doc_variable_i18n,MB_I18N_CONV_DOS2UNIX,"Message for when converting a file to unix.")
MB_I18N_PACKAGE_CREATE_ARCHIVE ?= Build distribution archive
$(call mb_make_call,mb_doc_variable_i18n,MB_I18N_PACKAGE_CREATE_ARCHIVE,"Message for when creating a archive.")
MB_I18N_MAKE_CHECK_ARG1 ?= Argument 1 is missing MB_I18N_MAKE_CHECK_ARG1 ?= Argument 1 is missing
$(call mb_make_call,mb_doc_variable_i18n,MB_I18N_MAKE_CHECK_ARG1,"Error message when argument 1 is missing.") $(call mb_make_call,mb_doc_variable_i18n,MB_I18N_MAKE_CHECK_ARG1,"Error message when argument 1 is missing.")

View file

@ -18,6 +18,7 @@ include $(MB__BASEPATH)/lib/make/प्रणाली/mb_make.mk
include $(MB__BASEPATH)/lib/make//mb_os.mk include $(MB__BASEPATH)/lib/make//mb_os.mk
include $(MB__BASEPATH)/lib/make//mb_conv.mk include $(MB__BASEPATH)/lib/make//mb_conv.mk
include $(MB__BASEPATH)/lib/make//mb_sdcc.mk include $(MB__BASEPATH)/lib/make//mb_sdcc.mk
include $(MB__BASEPATH)/lib/make//mb_package.mk
include $(MB__BASEPATH)/lib/make//mb_msxrom.mk include $(MB__BASEPATH)/lib/make//mb_msxrom.mk
include $(MB__BASEPATH)/lib/make//mb_msxhub.mk include $(MB__BASEPATH)/lib/make//mb_msxhub.mk
include $(MB__BASEPATH)/lib/make//mb_msxpipe.mk include $(MB__BASEPATH)/lib/make//mb_msxpipe.mk
@ -34,11 +35,3 @@ $(call mb_make_call,mb_doc_variable_rock,MB__RECIPEPREFIX,"Recipe prefix to rest
$(call mb_make_call,mb_doc_variable_rock,MB__BASEPATH,"Path where msxbuild lib folder is located.") $(call mb_make_call,mb_doc_variable_rock,MB__BASEPATH,"Path where msxbuild lib folder is located.")
$(call mb_make_call,mb_doc_variable_rock,MB__BASEPATH_REAL,"Resolved real path of msxbuild.") $(call mb_make_call,mb_doc_variable_rock,MB__BASEPATH_REAL,"Resolved real path of msxbuild.")
# TODO: move to mb_package.mk
define mb_create_dist
$(MB__    )$(call mb_make_call,mb_os_echo_command,Creating distribution archive $(2))
$(MB__    )tar -czf $(2) -C $(1) `ls $(1)`
endef
$(call mb_make_call,mb_doc_function,mb_create_dist,"Create an distribution archive.","<dir> <artifact>")

View file

@ -0,0 +1,7 @@
define mb_package_create_archive
$(MB__    )$(call mb_make_call,mb_os_echo_command,$(MB_I18N_PACKAGE_CREATE_ARCHIVE) $(2))
$(MB__    )tar -czf $(2) -C $(1) `ls $(1)`
endef
$(call mb_make_call,mb_doc_function,mb_package_create_archive,"Create an distribution archive.","<dir> <artifact>")

2
src/dist/0module.mk vendored
View file

@ -23,7 +23,7 @@ $(call mb_make_call,mb_doc_target,$(DIST_BIN)/@prepare,"Prepare folder with bina
$(call mb_make_call,mb_make_flag_phony,$(DIST_BIN)/@prepare) $(call mb_make_call,mb_make_flag_phony,$(DIST_BIN)/@prepare)
$(DIST_OUT): | $(DIST_BIN)/@prepare $(DIST_OUT): | $(DIST_BIN)/@prepare
$(call mb_make_call,mb_create_dist,$(DIST_BIN),$@) $(call mb_make_call,mb_package_create_archive,$(DIST_BIN),$@)
$(call mb_make_call,mb_doc_target,$(DIST_OUT),"Build archive distribution artifact.") $(call mb_make_call,mb_doc_target,$(DIST_OUT),"Build archive distribution artifact.")
$(call mb_make_call,mb_proj_grow_deps_phase_package,$(DIST_OUT)) $(call mb_make_call,mb_proj_grow_deps_phase_package,$(DIST_OUT))