/usr/lib/x86_64-linux-gnu/octave/packages/ocs-0.1.5/x86_64-pc-linux-gnu-api-v50+/PKG_ADD is in octave-ocs 0.1.5-2+deb9u1.
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 | dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
dirname = sprintf ("%s%s",
dirname (1 : strfind (dirname, "usr/lib/") - 1),
"usr/share/octave/packages/ocs-0.1.5/");
if (! exist (fullfile (dirname, "inst"), "dir"))
## Run this if the package is installed
for ii=1:length (dirlist)
addpath (fullfile (dirname, dirlist{ii}), "-end")
endfor
else
## Run this if we are testing the package without installation
for ii=1:length(dirlist)
addpath (fullfile (dirname, "inst", dirlist{ii}))
addpath (fullfile (dirname, "src"))
endfor
endif
warning ("off", "Octave:fopen-file-in-path");
clear dirlist dirname
|