Annotation of OpenXM/src/kan96xx/Doc/oxasir-win.sm1, Revision 1.10
1.10 ! takayama 1: % $OpenXM: OpenXM/src/kan96xx/Doc/oxasir-win.sm1,v 1.9 2002/01/09 11:08:02 takayama Exp $
1.1 takayama 2: % It is empty for now.
3: %
1.2 takayama 4: /oxasir.sm1.loaded 1 def
1.8 takayama 5: (oxasir-win.sm1 (C) N.Takayama, 1/9, 2002) message
6:
7: [(getenv) (OPENXMHOMEWIN)] extension
8: /OpenXM_HOME_WIN set
9: OpenXM_HOME_WIN tag 0 eq {
10: [(getenv) (OpenXM_HOME)] extension
11: /OpenXM_HOME_WIN set
1.10 ! takayama 12: } { } ifelse
! 13: OpenXM_HOME_WIN tag 0 eq {
! 14: %% Hard encoding:
! 15: /OpenXM_HOME_WIN
! 16: (\OpenXM-win)
! 17: % (\cygwin\home\nobuki\OpenXM\misc\packages\Windows\OpenXM-win)
! 18: def
1.8 takayama 19: } { } ifelse
20:
1.2 takayama 21:
22: %% Set constants for windows.
1.9 takayama 23: [(getenv) (OSTYPE)] extension tag 0 eq {
24: /oxasirpath.ostype (native-windows) def
25: }{
26: [(getenv) (OSTYPE)] extension /oxasirpath.ostype set
27: } ifelse
28:
29: oxasirpath.ostype (cygwin) eq {
1.2 takayama 30: /oxasirpath.oxasir
31: [ [(getenv) (OpenXM_HOME)] extension
32: (/bin/ox_asir) ] cat
33: def
34: /oxasirpath.asirlib
35: [ [(getenv) (OpenXM_HOME)] extension
36: (/lib/sm1/oxasir.asir) ] cat
37: def
38: /oxpath.ox
39: (ox)
40: def
1.8 takayama 41: }{
42: /oxasirpath.oxasir
43: [ OpenXM_HOME_WIN
44: (\bin\ox_asir) ] cat
45: def
46: /oxasirpath.asirlib
47: [ OpenXM_HOME_WIN
48: (/lib/sm1/oxasir.asir)
49: ] cat
50: def
51: /oxpath.ox
52: [ OpenXM_HOME_WIN
53: (\bin\ox.exe)
54: ] cat
55: def
56: } ifelse
1.2 takayama 57: %% Override asirconnectr
58: /asirconnectr {
1.5 takayama 59: [(getenv) (OSTYPE)] extension tag 0 eq {
1.6 takayama 60: asirconnectr_win
1.5 takayama 61: }{
1.3 takayama 62: [(getenv) (OSTYPE)] extension (cygwin) eq
63: {
64: asirconnectr_cygwin
65: }{
66: asirconnectr_win
67: }ifelse
1.5 takayama 68: } ifelse
1.3 takayama 69: } def
70:
71: /asirconnectr_cygwin {
1.2 takayama 72: [/in-asirconnectr /pass /peer /data /control /oxasir] pushVariables
73: [
74: /pass [(oxGenPass)] extension def
75: /peer [(oxGetPort) (localhost)] extension def
76: /data peer 1 get toString def
77: /control peer 3 get toString def
78: peer message
79: [(start ) oxpath.ox ( -reverse -ox ) oxasirpath.oxasir
80: ( -data ) data ( -control ) control ( -pass ) pass
81: ( -wait 5 )
82: oxpath.null
83: ] cat system
1.3 takayama 84: [(oxCreateClient2) peer 0 pass] extension /oxasir set
85: %% 0 means connect from only localhost.
86: oxasir asirinit
87: /arg1 oxasir def
88: ] pop
89: popVariables
90: arg1
91: } def
92:
93: /asirconnectr_win {
94: [/in-asirconnectr /pass /peer /data /control /oxasir] pushVariables
95: [
96: /pass [(oxGenPass)] extension def
97: /peer [(oxGetPort) (localhost)] extension def
98: /data peer 1 get toString def
99: /control peer 3 get toString def
100: peer message
101:
102:
103: [(forkExec) [
104: (start)
1.8 takayama 105: oxpath.ox
1.3 takayama 106: (-reverse)
107: (-ox)
1.8 takayama 108: oxasirpath.oxasir
1.3 takayama 109: (-data)
110: data
111: (-control)
112: control
113: (-pass)
114: pass
115: (-wait)
116: (5)
117: ]
118: [ ] 3] extension
119:
1.2 takayama 120: [(oxCreateClient2) peer 0 pass] extension /oxasir set
121: %% 0 means connect from only localhost.
122: oxasir asirinit
123: /arg1 oxasir def
124: ] pop
125: popVariables
126: arg1
127: } def
128:
129: %%
130:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>