[Mono-winforms-list] New svn downloader and builder script
Thu, 17 Feb 2005 10:50:46 -0800
On February 17, 2005 08:57 am, Paul wrote:
> First, it assumes you've done a compile before - I need to add in a
> check for (say) ~/mono/makefile. If it's not there, run ./autogen.sh.
Careful; I for one don't have it at ~/mono. Won't ./mono/makefile do?
> Second, there is no check to ensure the compile was happy. If anyone can
> suggest how best to see if the compile has completed without an error (I
> have a feeling I'll need to listen for a signal from gcc and/or mcs on
> that - not sure which though - I imagine SIGETERM would be the one), I'd
> appreciate it.
Can't you simply test the exit code?
if make ; then
su -c "make install"
or make && su -c "make install"
> (as if you don't already know it!)