PDA

View Full Version : Cross Platform Shell Scripts...



savage
05-02-2008, 11:31 AM
Hi Linux and Unix Gurus,
From within a #!/bin/sh shell script how I can conditionally set variables based on e Operating system the script is runnin on. For example.



#!/bin/sh

if MACOS then
path=blahblahblah
fi
if LINUX then
path=blohblohbloh
fi

fpc $path/myproject.dpr



Thanks.