I'm not sure of your processes for changes to Mose-for-Mere-Mortals, so I joined the group. I'd like to propose an update to the install script, create-moses-irstlm-randlm-1.28 and the addition of a script called setup.sh (attached proposals.tar.gz).
- The modified create-moses-irstlm-randlm-1.28a works exactly the same as the previous version. There are 13 line changes that set five default values from environment variables instead of hard-coded in the script.
- The new setup.sh script has three basic functions
- It prompts the user and sets the four values.
- It sets the identifies and sets the default number of processors and lets the user override with the line:
export detectedprocessors=`grep -c "^processor" /proc/cpuinfo` - It determines whether it should use 'yum' or 'apt-get' and uses the right one to install all of the dependencies.
The reasoning is as follows. Windows users seem like a targeted audience. These users expect a simple (minded?) setup program... typically named Setup.exe. The setup.sh script should be familiar to them. The script asks five questions, much like a setup wizard they are used to. Experienced Linux users can still edit the scripts or use the prompts.
I have my own series of shell scripts that are similar to these. Over time, I'd like to merge them with yours. Let me know what you think of these first. Also, this script worked great on a VMware Server 2.0 guest machine running 64-bit Ubuntu 10.04.
Thanks,
Tom