/usr/lib/octave/packages/3.2/ocs-0.1.1/x86_64-pc-linux-gnu-api-v37/PKG_ADD is in octave-ocs 0.1.1-1.
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 | dirlist = {"utl","asm","tst","nls","prs","sbn"};
dir = fileparts (mfilename ("fullpath"));
# set paths for octave 3.2 and ocs-0.1.1, so that the package can cope with the
# fact that the .oct files and the .m files are not in the same directory
dir = "/usr/share/octave/packages/3.2/ocs-0.1.1/";
if (! exist (fullfile (dir, "inst"), "dir"))
## Run this if the package is installed
for ii=1:length(dirlist)
addpath (fullfile(dir,dirlist{ii}),"-end")
endfor
else
## Run this if we are testing the package is installed without installation
for ii=1:length(dirlist)
addpath (fullfile(dir,"inst",dirlist{ii}))
endfor
endif
clear dirlist dir
|