diff --git a/bin/mush b/bin/mush index ca55ec1..7cd6ae2 100755 --- a/bin/mush +++ b/bin/mush @@ -25,6 +25,7 @@ embed() { embed=$1 } +## BP004: Compile the entrypoint extern package console extern package json @@ -971,19 +972,19 @@ exec_build_dist() { dist_2022 >> $build_file + echo "## BP004: Compile the entrypoint" >> "${build_file}" compile_file "src/main.sh" "${build_file}" - echo "main \"\$@\"" >> $build_file + echo "## BP005: Execute the entrypoint" >> "${build_file}" + echo "main \"\$@\"" >> "${build_file}" + ## Generate binary file mkdir -p bin/ - - cp ${build_file} ${final_file} - cp ${final_file} ${bin_file} - - chmod +x ${bin_file} + chmod +x "${build_file}" + cp "${build_file}" "${final_file}" + cp "${final_file}" "${bin_file}" } - exec_init() { local package_name=$(basename "$PWD") local manifest_file=Manifest.toml @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() { fi done } +## BP005: Execute the entrypoint main "$@" diff --git a/src/tasks/build_dist.sh b/src/tasks/build_dist.sh index 8001bf4..4a0c7fc 100644 --- a/src/tasks/build_dist.sh +++ b/src/tasks/build_dist.sh @@ -16,15 +16,15 @@ exec_build_dist() { dist_2022 >> $build_file + echo "## BP004: Compile the entrypoint" >> "${build_file}" compile_file "src/main.sh" "${build_file}" - echo "main \"\$@\"" >> $build_file + echo "## BP005: Execute the entrypoint" >> "${build_file}" + echo "main \"\$@\"" >> "${build_file}" + ## Generate binary file mkdir -p bin/ - - cp ${build_file} ${final_file} - cp ${final_file} ${bin_file} - - chmod +x ${bin_file} + chmod +x "${build_file}" + cp "${build_file}" "${final_file}" + cp "${final_file}" "${bin_file}" } - diff --git a/target/dist/mush b/target/dist/mush index ca55ec1..7cd6ae2 100644 --- a/target/dist/mush +++ b/target/dist/mush @@ -25,6 +25,7 @@ embed() { embed=$1 } +## BP004: Compile the entrypoint extern package console extern package json @@ -971,19 +972,19 @@ exec_build_dist() { dist_2022 >> $build_file + echo "## BP004: Compile the entrypoint" >> "${build_file}" compile_file "src/main.sh" "${build_file}" - echo "main \"\$@\"" >> $build_file + echo "## BP005: Execute the entrypoint" >> "${build_file}" + echo "main \"\$@\"" >> "${build_file}" + ## Generate binary file mkdir -p bin/ - - cp ${build_file} ${final_file} - cp ${final_file} ${bin_file} - - chmod +x ${bin_file} + chmod +x "${build_file}" + cp "${build_file}" "${final_file}" + cp "${final_file}" "${bin_file}" } - exec_init() { local package_name=$(basename "$PWD") local manifest_file=Manifest.toml @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() { fi done } +## BP005: Execute the entrypoint main "$@" diff --git a/target/dist/mush.sh b/target/dist/mush.sh index ca55ec1..7cd6ae2 100644 --- a/target/dist/mush.sh +++ b/target/dist/mush.sh @@ -25,6 +25,7 @@ embed() { embed=$1 } +## BP004: Compile the entrypoint extern package console extern package json @@ -971,19 +972,19 @@ exec_build_dist() { dist_2022 >> $build_file + echo "## BP004: Compile the entrypoint" >> "${build_file}" compile_file "src/main.sh" "${build_file}" - echo "main \"\$@\"" >> $build_file + echo "## BP005: Execute the entrypoint" >> "${build_file}" + echo "main \"\$@\"" >> "${build_file}" + ## Generate binary file mkdir -p bin/ - - cp ${build_file} ${final_file} - cp ${final_file} ${bin_file} - - chmod +x ${bin_file} + chmod +x "${build_file}" + cp "${build_file}" "${final_file}" + cp "${final_file}" "${bin_file}" } - exec_init() { local package_name=$(basename "$PWD") local manifest_file=Manifest.toml @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() { fi done } +## BP005: Execute the entrypoint main "$@" diff --git a/target/dist/mush.tmp b/target/dist/mush.tmp old mode 100644 new mode 100755 index ca55ec1..7cd6ae2 --- a/target/dist/mush.tmp +++ b/target/dist/mush.tmp @@ -25,6 +25,7 @@ embed() { embed=$1 } +## BP004: Compile the entrypoint extern package console extern package json @@ -971,19 +972,19 @@ exec_build_dist() { dist_2022 >> $build_file + echo "## BP004: Compile the entrypoint" >> "${build_file}" compile_file "src/main.sh" "${build_file}" - echo "main \"\$@\"" >> $build_file + echo "## BP005: Execute the entrypoint" >> "${build_file}" + echo "main \"\$@\"" >> "${build_file}" + ## Generate binary file mkdir -p bin/ - - cp ${build_file} ${final_file} - cp ${final_file} ${bin_file} - - chmod +x ${bin_file} + chmod +x "${build_file}" + cp "${build_file}" "${final_file}" + cp "${final_file}" "${bin_file}" } - exec_init() { local package_name=$(basename "$PWD") local manifest_file=Manifest.toml @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() { fi done } +## BP005: Execute the entrypoint main "$@"