Hey guys, it's been quite a while since i've been on here :P
I'm fiddling around with the Go language. However, I'd much rather have a build script that'll compile the program for me than typing in the lines of code necessary every time:
6g hello.go
6l hello.6
./6.out
Even though that is not much, I would also like to learn some more about scripting, so i figure this would be as good a time as any.
I can easily create a script file that will execute that exact code, and it works. But what I want to do is make a script (I'm not even sure if it's possible or what the best approach is) file that will be able to know (by somehow me telling it what it is to compile) what file I want to compile and run, and then do the code above for it.
How would I go about doing this?
PS. I'm running Mac OS X and want to do this via Terminal (Unix based stuff)