version 1.5, 1999/11/11 01:35:07 |
version 1.8, 2000/01/19 08:33:27 |
|
|
%%%%%%%%%%% $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.7 2000/01/19 06:41:02 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. |
|
|
%% Otherwise error. |
%% Otherwise error. |
[(getPathNameSm1: The file ) fname |
[(getPathNameSm1: The file ) fname |
( 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 { |
|
|
} { } ifelse |
} { } ifelse |
|
|
%% Otherwise error. |
%% Otherwise error. |
[ (getPathNameAsir: The file ) fname |
[ (getPathNameAsir: The file ) |
|
fname (ox_asir) eq |
|
{(ox\_asir)} { fname }ifelse |
( could not be found ) |
( could not be found ) |
(neigher in /usr/local/lib/asir nor in ASIR_LIBDIR. ) |
(neigher in /usr/local/lib/asir nor in ASIR\_LIBDIR. ) |
] cat /getPathNameAsir.errorMessage set |
] cat /getPathNameAsir.errorMessage set |
getPathNameAsir.errorMessage message |
getPathNameAsir.errorMessage message |
] pop popVariables getPathNameAsir.errorMessage error |
] pop popVariables getPathNameAsir.errorMessage error |
|
|
/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 |