/usr/share/octave/packages/secs2d-0.0.8/PKG_ADD is in octave-secs2d 0.0.8-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Run this only if the package is installed
if (! exist (fullfile (fileparts (mfilename ("fullpath")), "inst"), "dir"))
dirlist= {"Utilities","DDGOX","ThDDGOX","QDDGOX","METLINES","DDGOXT"};
for ii=1:length(dirlist)
addpath ( [ fileparts( mfilename("fullpath")) "/" dirlist{ii}])
end
__gmsh = file_in_path (EXEC_PATH, "gmsh");
if (isempty (__gmsh))
__gmsh = file_in_path (EXEC_PATH, "gmsh.exe");
if (isempty (__gmsh))
warning ("gmsh does not seem to be present some functionalities will be disabled");
endif
endif
clear __gmsh;
__dx = file_in_path (EXEC_PATH, "dx");
if (isempty (__dx))
__dx = file_in_path (EXEC_PATH, "dx.exe");
if (isempty (__dx))
warning ("dx does not seem to be present some functionalities will be disabled");
endif
endif
clear __dx;
end
|