How can I code a script to conditionally compile based on platform type ?
Simpler than invoking and parsing an external system command is to examine the version of the Warehouse client that is compiling the script. The following script output will give you an idea of what you can do : d:\>.\wh.exe Warehouse 3.00.3440-W (c) Taurus Software, Inc. 2004 Installed for: Taurus Software Inc. 1> print “You are running ${WHVERSION}” 2> print “This version of Warehouse “; token(“${WHVERSION}”,2,” -“); & 3> ” with suffix “; str(“${WHVERSION}”,len(“${WHVERSION}”), 1); ” runs under “; 4> 5> #IF str(WHVERSION,len(WHVERSION),1) = “W” 6> print “Windows” 7> #ELSE IF str(WHVERSION,len(WHVERSION),1) = “L” 8* print “Linux” 9* #ELSE 10* print “unrecognized OS suffix “; str(“${WHVERSION}”,len(“${WHVERSION}”), 1) 11* #ENDIF 12> go You are running Warehouse 3.00.3440-W This version of Warehouse 3.00.