version 1.4, 2001/12/28 03:34:24 |
version 1.11, 2002/01/13 06:55:30 |
|
|
% $OpenXM: OpenXM/src/kan96xx/Doc/oxasir-win.sm1,v 1.3 2001/12/28 03:33:21 takayama Exp $ |
% $OpenXM: OpenXM/src/kan96xx/Doc/oxasir-win.sm1,v 1.10 2002/01/09 11:19:25 takayama Exp $ |
% It is empty for now. |
% It is empty for now. |
% |
% |
/oxasir.sm1.loaded 1 def |
/oxasir.sm1.loaded 1 def |
(oxasir-win.sm1 (C) N.Takayama, 12/28, 2001) message |
(oxasir-win.sm1 (C) N.Takayama, 1/9, 2002) message |
|
|
|
[(getenv) (OPENXMHOMEWIN)] extension |
|
/OpenXM_HOME_WIN set |
|
OpenXM_HOME_WIN tag 0 eq { |
|
[(getenv) (OpenXM_HOME)] extension |
|
/OpenXM_HOME_WIN set |
|
} { } ifelse |
|
OpenXM_HOME_WIN tag 0 eq { |
|
%% Hard encoding: |
|
/OpenXM_HOME_WIN |
|
(\OpenXM-win) |
|
% (\cygwin\home\nobuki\OpenXM\misc\packages\Windows\OpenXM-win) |
|
def |
|
} { } ifelse |
|
|
|
|
%% Set constants for windows. |
%% Set constants for windows. |
|
[(getenv) (OSTYPE)] extension tag 0 eq { |
|
/oxasir.ostype (native-windows) def |
|
}{ |
|
[(getenv) (OSTYPE)] extension /oxasir.ostype set |
|
} ifelse |
|
|
|
oxasir.ostype (cygwin) eq { |
/oxasirpath.oxasir |
/oxasirpath.oxasir |
[ [(getenv) (OpenXM_HOME)] extension |
[ [(getenv) (OpenXM_HOME)] extension |
(/bin/ox_asir) ] cat |
(/bin/ox_asir) ] cat |
% (\OpenXM-win\bin\ox_asir) |
|
def |
def |
/oxasirpath.asirlib |
/oxasirpath.asirlib |
[ [(getenv) (OpenXM_HOME)] extension |
[ [(getenv) (OpenXM_HOME)] extension |
(/lib/sm1/oxasir.asir) ] cat |
(/lib/sm1/oxasir.asir) ] cat |
% (\OpenXM-win\lib\sm1\oxasir.asir) |
|
def |
def |
/oxpath.ox |
/oxpath.ox |
%% (\OpenXM-win\bin\ox.exe) |
|
(ox) |
(ox) |
def |
def |
|
}{ |
|
/oxasirpath.oxasir |
|
[ OpenXM_HOME_WIN |
|
(\bin\ox_asir) ] cat |
|
def |
|
/oxasirpath.asirlib |
|
[ OpenXM_HOME_WIN |
|
(/lib/sm1/oxasir.asir) |
|
] cat |
|
def |
|
/oxpath.ox |
|
[ OpenXM_HOME_WIN |
|
(\bin\ox.exe) |
|
] cat |
|
def |
|
} ifelse |
%% Override asirconnectr |
%% Override asirconnectr |
/asirconnectr { |
/asirconnectr { |
|
[(getenv) (OSTYPE)] extension tag 0 eq { |
|
asirconnectr_win |
|
}{ |
[(getenv) (OSTYPE)] extension (cygwin) eq |
[(getenv) (OSTYPE)] extension (cygwin) eq |
{ |
{ |
asirconnectr_cygwin |
asirconnectr_cygwin |
}{ |
}{ |
asirconnectr_win |
asirconnectr_win |
}ifelse |
}ifelse |
|
} ifelse |
} def |
} def |
|
|
/asirconnectr_cygwin { |
/asirconnectr_cygwin { |
|
|
/control peer 3 get toString def |
/control peer 3 get toString def |
peer message |
peer message |
|
|
/oxasirpath.asirlib |
|
(\OpenXM-win\lib\sm1\oxasir.asir) |
|
def |
|
|
|
[(forkExec) [ |
[(forkExec) [ |
(start) |
(start) |
(\OpenXM-win\bin\ox.exe) |
oxpath.ox |
(-reverse) |
(-reverse) |
(-ox) |
(-ox) |
(\OpenXM-win\bin\ox_asir) |
oxasirpath.oxasir |
(-data) |
(-data) |
data |
data |
(-control) |
(-control) |