Page 1 of 1
Extend the Version function
Posted: Fri Aug 02, 2013 1:20 am
by edgore
It would be great if the version function returned more than just a number. It would be nice if it told you if it was desktop or server, for example, so that I could code in conditionals when developing on the desktop. Then when I copy and paste to server I don't need to comment stuff in and out by hand each time.
Re: Extend the Version function
Posted: Fri Aug 02, 2013 2:32 am
by wsamples
Try 'the environment'. Should return server, example <?lc put the environment ?> resturns "server"
Re: Extend the Version function
Posted: Fri Aug 02, 2013 2:52 am
by edgore
Ah - exactly what I was looking for.
I guess I will change the feature request to "Update the documentation for environment to indicate that "server" is a possible result.
Re: Extend the Version function
Posted: Fri Aug 02, 2013 7:53 am
by richmond62
That's a can of worms:
Think about all the different versions of Linux.
Re: Extend the Version function
Posted: Fri Aug 02, 2013 3:07 pm
by edgore
@richmond62
I haven't fooled around with systemVersion enough to know whether it would give you anything useful back in those situations or not, but that might take care of it, along with environment.
My main interest was just being able to put conditionals into my code so I don't have to comment stuff in/out during development and deployment between desktop and server, so environment will work for me.