Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Sep 6, 2023
1 parent 0bf4b44 commit 2e86bf9
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 35 deletions.
16 changes: 9 additions & 7 deletions bin/mush
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ embed() {
embed=$1
}

## BP004: Compile the entrypoint

extern package console
extern package json
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() {
fi
done
}
## BP005: Execute the entrypoint
main "$@"
14 changes: 7 additions & 7 deletions src/tasks/build_dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

16 changes: 9 additions & 7 deletions target/dist/mush
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ embed() {
embed=$1
}

## BP004: Compile the entrypoint

extern package console
extern package json
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() {
fi
done
}
## BP005: Execute the entrypoint
main "$@"
16 changes: 9 additions & 7 deletions target/dist/mush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ embed() {
embed=$1
}

## BP004: Compile the entrypoint

extern package console
extern package json
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() {
fi
done
}
## BP005: Execute the entrypoint
main "$@"
16 changes: 9 additions & 7 deletions target/dist/mush.tmp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ embed() {
embed=$1
}

## BP004: Compile the entrypoint

extern package console
extern package json
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1388,4 +1389,5 @@ process_dev_dependencies_build() {
fi
done
}
## BP005: Execute the entrypoint
main "$@"

0 comments on commit 2e86bf9

Please sign in to comment.