version 1.5, 1999/11/11 01:35:07 |
version 1.6, 1999/11/18 08:08:23 |
|
|
%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.4 1999/11/04 12:08:43 takayama Exp $ |
%%%%%%%%%%% $OpenXM: OpenXM/src/kan96xx/Doc/ox.sm1,v 1.5 1999/11/11 01:35:07 takayama Exp $ |
%%%%%%%%%%%% Configuration: Specify your server path |
%%%%%%%%%%%% Configuration: Specify your server path |
%%%%% ox, ox_sm1, oxlog are contained in kxx.tgz |
%%%%% ox, ox_sm1, oxlog are contained in kxx.tgz |
%%%%% These should be under /usr/local/lib/sm1 or LOAD_SM1_PATH |
%%%%% These should be under /usr/local/lib/sm1 or LOAD_SM1_PATH |
|
|
} { } ifelse |
} { } ifelse |
} { } ifelse |
} { } ifelse |
|
|
|
%% Else first try to find it in OpenXM_HOME |
|
[(getenv) (OpenXM_HOME)] extension /tname set |
|
tname isString |
|
{ |
|
tname addSlash /tname set |
|
[tname (lib/sm1/)] cat /tname set |
|
[(stat) [tname fname] cat] extension |
|
0 get isInteger %% The file was found. |
|
{ /fullname [tname fname] cat def |
|
/getPathNameSm1.LLL goto |
|
} { } ifelse |
|
} { } ifelse |
|
|
%% Else try to find it in /usr/local/lib/sm1 |
%% Else try to find it in /usr/local/lib/sm1 |
[(stat) [(/usr/local/lib/sm1/) fname] cat] extension |
[(stat) [(/usr/local/lib/sm1/) fname] cat] extension |
0 get isInteger %% The file was found. |
0 get isInteger %% The file was found. |
|
|
( could not be found ) |
( could not be found ) |
(neigher in LOAD_SM1_PATH=) |
(neigher in LOAD_SM1_PATH=) |
[(getenv) (LOAD_SM1_PATH)] extension |
[(getenv) (LOAD_SM1_PATH)] extension |
|
( nor in OpenXM_HOME/lib/sm1=) |
|
[(getenv) (OpenXM_HOME)] extension |
|
(/lib/sm1) |
( nor in /usr/local/lib/sm1) |
( nor in /usr/local/lib/sm1) |
] cat /getPathNameSm1.errorMessage set |
] cat /getPathNameSm1.errorMessage set |
getPathNameSm1.errorMessage message |
getPathNameSm1.errorMessage message |
|
|
[(getPathNameSm1) |
[(getPathNameSm1) |
[([fname] getPathNameSm1 fullname) |
[([fname] getPathNameSm1 fullname) |
(string fname, fullname) |
(string fname, fullname) |
(This command searches the fname in /usr/local/lib/sm1 and LOAD_SM1_PATH) |
(This command searches the fname in LOAD_SM1_PATH, ) |
(and returns the fullname.) |
(OpenXM_HOME/lib/sm1, and /usr/local/lib/sm1) |
|
(It returns the fullname.) |
]] putUsages |
]] putUsages |
|
|
/getPathNameAsir { |
/getPathNameAsir { |
|
|
/com arg1 def |
/com arg1 def |
[(/bin/csh -c ") com (")] cat |
[(/bin/csh -c ") com (")] cat |
/com2 set |
/com2 set |
%% com2 message |
%%com2 message |
com2 system |
com2 system |
] pop |
] pop |
popVariables |
popVariables |