Closed GoogleCodeExporter closed 9 years ago
This issue was closed by revision r2384.
Original comment by cmung...@gmail.com
on 11 Oct 2014 at 4:06
This issue was closed by revision r2385.
Original comment by cmung...@gmail.com
on 11 Oct 2014 at 4:09
Thanks! Unfortunately uname doesn't accept -o on OS X
{{{
DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output.
The following options are available:
-a Behave as though all of the options -mnrsv were specified.
-m print the machine hardware name.
-n print the nodename (the nodename may be a name that the system is known by to a communications network).
-p print the machine processor architecture name.
-r print the operating system release.
-s print the operating system name.
-v print the operating system version.
If no options are specified, uname prints the operating system name as if the -s option had been specified.
}}}
I switched this for plain "uname", which yields "Darwin" on OS X and "Linux" on
Linux, hopefully works for cygwin
Original comment by cmung...@gmail.com
on 11 Oct 2014 at 4:11
I also inverted the second test, as I think you made a typo there
Original comment by cmung...@gmail.com
on 11 Oct 2014 at 4:12
Thanks for your quick response!
You are right about my second test.
Plain "uname" returns CYGWIN_NT-6.3 for me, i.e. it includes the Windows
version.
With bash it would be easy to test for this, using [[ "`uname`" == CYGWIN* ]].
BTW I made further modification. I like to use a ~/tools/bin directory
containing symlinks to all kinds of tools, including
/path/to/owltools/owltools. Therefore I enabled the owltools script to find
its own path in such a situation (using readlink). (BTW in the presence of the
DIRNAME variable it's not necessary to once more determine PATH_TO_ME.)
Please find attached my latest version; hope it works for you.
Original comment by allegris...@gmail.com
on 11 Oct 2014 at 4:52
Attachments:
Original issue reported on code.google.com by
allegris...@gmail.com
on 11 Oct 2014 at 3:33