Monday, August 30, 2010

ObjectIcon 2.4 and Cygwin make

ObjectIcon 2.4 is available at code.google.com/p/objecticon

This is the Icon language of the late Ralph Griswold and others as extended by Robert Parlett with class-based objects and Unicode.

If you are a Windows user with Cygwin as your gcc build environment, you will have to recall how to apply env var changes to the current shell: ObjectIcon comes with a handy paths.sh file which will only be of use if run as
.  ./paths.sh
where the initial dot ensures that a script not using exit will have its variables export into the scope of the current shell in which it will run.  Just running the script will not set the var's for ObjectIcon to use.

This way you are able to pick up the ObjectIcon env vars such as OIHOME without adding them into a bash rc file or the like.

On my system that paths.sh file is
# Object Icon path settings

export OIHOME="/cygdrive/i/objecticon-2.4"
export OIBIN="$OIHOME/bin"
export OILIB="$OIHOME/lib"
export OIPATH="$OILIB/main:$OILIB/gui:$OILIB/xml:$OILIB/parser:$OILIB/ipl"
export OIINCL="$OILIB/incl"
PATH="$PATH:$OIBIN"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$OILIB/native"
export TRACE OIMAXLEVEL

No comments: