David A. Parker | 2 Nov 2009 18:49
Favicon

Re: Left 4 Dead 2 Demo Update Available

Maybe adding something at the beginning of the script to set a default 
$STEAM value would be the best solution.  The value could be replaced 
later when the arguments are parsed, in case one was specified by a 
command-line option.

Something like this:

... <set variables> ...

     if test -f ./steam ; then
         STEAM="./steam"
     elif test -f ../steam ; then
         STEAM="../steam"
     else
         STEAM=""
     fi

... <parse command-line arguments> ...

     - Dave

Milton Ngan wrote:
> I'll change the default location to be ../steam in the L4D and TF/OB srcds_run, since this seems to be what
everyone expects it to be. I'll see if I can make locating the steam binary a little smarter. The change I
made to allow you to specify the steam binary location didn't make it into this release. 
> 
> ./steam definitely doesn't make sense. ../steam makes more sense, but it isn't perfect because if
someone runs the install like this:
> 
> 	./steam <...> -dir valvegames
(Continue reading)


Gmane