by
31. October 2009 12:52
Here the script:
===========================================
#!/bin/bash
NEWARGS=""
while [ $# -gt 0 ]
do
NEWARGS="$NEWARGS $1"
shift
done
mono /usr/bin/fsharp/bin/fsc.exe $NEWARGS
=============================================
Here we just assembly command line back to one string
it assumses that you have fsharp installed in /usr/bin/fsharp.
Create a file named fsc in /usr/bin (for example). Make in executable chmod +x /path_to_fsc. And now you can call just fsc <your_args> instead of mono fsc.exe <your_args> (i assume that you add /usr/bin/fsharp/bin to $PATH)
With help of this toy script i've compiled http://www.piotrzurek.net/2009/07/11/worlds-first-f-web-browser-runs-on-linux-using-gtk-and-webkit/. And the browser works great!.