New Mission - Compiling Scilab

Again I will be working on a smaller script which can compile Scilab which can be found here
Once it successfully compiles and run, I will merge it in the main script which can then download all dependencies, install them and finally download and compile Scilab.

Doubts / Targets to solve

I have many doubts regarding this, because there are many cases possible. But still a few persistent ones are:
  1. How to check the integrity of downloaded git repository of Scilab
    What I mean is that if someone breaks the git clone process then the compilation will fail for sure.
    I am guessing some file checksum to verify it, but I don't think something like that is present now,
    Any other alternatives to check this is highly appreciated.
  2. Also in my last post I mentioned about jdk error, so will it be OK if I apply the same solution i.e. copying the thirdparty lib from scilab to jdk
  3. A check for branches should also be done, I mean if a user enters an invalid branch.
  4. Lastly, I must include options for user to add more arguements while run time.
Let's hope to solve all these doubts and get it working.
Hoping for Best.
Happily Coding
Divyanshu Kumar