How to use the compiler
The compiler can be use to turn scripts which use Module.sh into static scripts which contain all their dependecies and do not require Module.sh anymore. This is a great way to ensure a script will work even if the repository will be unavailable.
Download
You can download the compiler from
https://mdl.sh/development/tools/compiler/compiler-static-0.9.26.sh
On the shell:
curl -O https://mdl.sh/development/tools/compiler/compiler-static-0.9.26.sh
chmod +x compiler-0.9.26.sh
Usage
The compiler takes 2 arguments:
-
the scripts file which should be compiled
-
the output file, which should not exist
./compiler-0.9.26.sh demo.sh demo-static.sh