Distributing a standalone binary executable is the easiest way to deliver Gauche applications to the users. However, what if you need your code to be built on the user's machine? Maybe your code is part of larger system and the client needs to build it on their site.
Once upon a time, delivering a source tarball and asking the user to run
./configure && make && make install wasn't a big deal. It was so much easier than before, when you had to read instructions cafefully and edit Makefiles according to your environment. However, the world has moved on.
So I wrote a small shell script get-gauche.
If you trust me enough, you can ask the user to do this:
curl -s https://raw.githubusercontent.com/shirok/getgauche/master/get-gauche.sh | /bin/bash
It works as follows:
- Ask the user where to install Gauche
- Check if the latest version of Gauche is already installed; if so, do nothing.
- Check if the user has write permission to the install destination; if not, ask the user if it's ok to use 'sudo' for installation.
- Download the official tarball of the latest release, compile and run check, then install it.
You can also download the
get-gauche script and run it.
The script can accept a bunch of command-line options to customize the behavior. See https://github.com/shirok/get-gauche for the details.
One instance I used it was like this: I wanted to use Gauche for testing and various management work in the product. I included
get-gauche.sh in the source tree, and in the Makefile I invoked it to install Gauche under the build tree.