version 1.11, 2002/01/13 06:55:30 |
version 1.14, 2002/08/03 06:02:35 |
|
|
% $OpenXM: OpenXM/src/kan96xx/Doc/oxasir-win.sm1,v 1.10 2002/01/09 11:19:25 takayama Exp $ |
% $OpenXM: OpenXM/src/kan96xx/Doc/oxasir-win.sm1,v 1.13 2002/07/31 02:57:37 takayama Exp $ |
% It is empty for now. |
% It is empty for now. |
% |
% |
/oxasir.sm1.loaded 1 def |
/oxasir.sm1.loaded 1 def |
Line 19 OpenXM_HOME_WIN tag 0 eq { |
|
Line 19 OpenXM_HOME_WIN tag 0 eq { |
|
} { } ifelse |
} { } ifelse |
|
|
|
|
%% Set constants for windows. |
ox.ostype 1 get (cygwin) eq { |
[(getenv) (OSTYPE)] extension tag 0 eq { |
/oxasirpath.oxasir |
/oxasir.ostype (native-windows) def |
[ (c:/cygwin) OpenXM_HOME_WIN |
}{ |
(/bin/ox_asir) ] cat |
[(getenv) (OSTYPE)] extension /oxasir.ostype set |
def |
} ifelse |
/oxasirpath.asirlib |
|
[ [(getenv) (OpenXM_HOME)] extension |
|
(/lib/sm1/oxasir.asir) ] cat |
|
def |
|
/oxpath.ox |
|
(ox) |
|
def |
|
}{ } ifelse |
|
|
oxasir.ostype (cygwin) eq { |
ox.ostype 1 get (xcygwin) eq { |
/oxasirpath.oxasir |
/oxasirpath.oxasir |
[ [(getenv) (OpenXM_HOME)] extension |
[ [(getenv) (OpenXM_HOME)] extension |
(/bin/ox_asir) ] cat |
(/bin/ox_asir) ] cat |
def |
def |
/oxasirpath.asirlib |
/oxasirpath.asirlib |
[ [(getenv) (OpenXM_HOME)] extension |
[ [(getenv) (OpenXM_HOME)] extension |
(/lib/sm1/oxasir.asir) ] cat |
(/lib/sm1/oxasir.asir) ] cat |
def |
def |
/oxpath.ox |
/oxpath.ox |
(ox) |
(ox) |
def |
def |
}{ |
}{ } ifelse |
|
|
|
ox.ostype 1 get (native) eq { |
/oxasirpath.oxasir |
/oxasirpath.oxasir |
[ OpenXM_HOME_WIN |
[ OpenXM_HOME_WIN |
(\bin\ox_asir) ] cat |
(\bin\ox_asir) ] cat |
|
|
(\bin\ox.exe) |
(\bin\ox.exe) |
] cat |
] cat |
def |
def |
} ifelse |
}{ } ifelse |
%% Override asirconnectr |
%% Override asirconnectr |
|
|
/asirconnectr { |
/asirconnectr { |
[(getenv) (OSTYPE)] extension tag 0 eq { |
ox.ostype 1 get (cygwin) eq { |
asirconnectr_win |
asirconnectr_cygwin |
}{ |
}{ } ifelse |
[(getenv) (OSTYPE)] extension (cygwin) eq |
ox.ostype 1 get (xcygwin) eq { |
{ |
asirconnectr_xcygwin |
asirconnectr_cygwin |
}{ } ifelse |
}{ |
ox.ostype 1 get (native) eq { |
asirconnectr_win |
asirconnectr_win |
}ifelse |
}{ } ifelse |
} ifelse |
|
} def |
} def |
|
|
/asirconnectr_cygwin { |
/asirconnectr_cygwin { |
[/in-asirconnectr /pass /peer /data /control /oxasir] pushVariables |
[/in-asirconnectr /pass /peer /data /control /oxasir /sss ] pushVariables |
[ |
[ |
/pass [(oxGenPass)] extension def |
/pass [(oxGenPass)] extension def |
/peer [(oxGetPort) (localhost)] extension def |
/peer [(oxGetPort) (localhost)] extension def |
/data peer 1 get toString def |
/data peer 1 get toString def |
/control peer 3 get toString def |
/control peer 3 get toString def |
peer message |
peer message |
[(start ) oxpath.ox ( -reverse -ox ) oxasirpath.oxasir |
[ox.win.start { ( ) } map cat ox_backslash_to_slash |
|
( ox ) ( -reverse -ox ) |
|
oxasirpath.oxasir |
( -data ) data ( -control ) control ( -pass ) pass |
( -data ) data ( -control ) control ( -pass ) pass |
( -wait 5 ) |
( -wait 5 ) |
oxpath.null |
oxpath.null |
] cat system |
] cat /sss set |
|
sss message sss system |
[(oxCreateClient2) peer 0 pass] extension /oxasir set |
[(oxCreateClient2) peer 0 pass] extension /oxasir set |
%% 0 means connect from only localhost. |
%% 0 means connect from only localhost. |
oxasir asirinit |
oxasir asirinit |
|
|
arg1 |
arg1 |
} def |
} def |
|
|
|
/asirconnectr_xcygwin { |
|
[/in-asirconnectr /pass /peer /data /control /oxasir /sss ] pushVariables |
|
[ |
|
/pass [(oxGenPass)] extension def |
|
/peer [(oxGetPort) (localhost)] extension def |
|
/data peer 1 get toString def |
|
/control peer 3 get toString def |
|
peer message |
|
[(oxlog /usr/X11R6/bin/xterm -iconic -e ) |
|
( ox ) ( -reverse -ox ) |
|
oxasirpath.oxasir |
|
( -data ) data ( -control ) control ( -pass ) pass |
|
( -wait 5 ) |
|
oxpath.null |
|
] cat /sss set |
|
sss message sss system |
|
[(oxCreateClient2) peer 0 pass] extension /oxasir set |
|
%% 0 means connect from only localhost. |
|
oxasir asirinit |
|
/arg1 oxasir def |
|
] pop |
|
popVariables |
|
arg1 |
|
} def |
|
|
/asirconnectr_win { |
/asirconnectr_win { |
[/in-asirconnectr /pass /peer /data /control /oxasir] pushVariables |
[/in-asirconnectr /pass /peer /data /control /oxasir] pushVariables |
[ |
[ |
|
|
|
|
|
|
[(forkExec) [ |
[(forkExec) [ |
(start) |
ox.win.start aload pop |
oxpath.ox |
oxpath.ox |
(-reverse) |
(-reverse) |
(-ox) |
(-ox) |