comparison src/of-ocs-4-pkgadd-fixes.patch @ 5534:372ea4c0afb2

Move of-ocs PKG_XXXX to inst dir and add break patch * src/of-ocs-3-break-fixes.patch, src/of-ocs-4-pkgadd-fixes.patch: new files * dist-files.mk: add ref to files
author John Donoghue <john.donoghue@ieee.org>
date Sun, 13 Sep 2020 08:15:14 -0400
parents
children
comparison
equal deleted inserted replaced
5533:b982f2df58cf 5534:372ea4c0afb2
1 diff -urN ocs.orig/inst/PKG_ADD ocs/inst/PKG_ADD
2 --- ocs.orig/inst/PKG_ADD 1969-12-31 19:00:00.000000000 -0500
3 +++ ocs/inst/PKG_ADD 2020-09-13 08:06:36.699521609 -0400
4 @@ -0,0 +1,18 @@
5 +dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
6 +dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
7 +
8 +if (! exist (fullfile (dirname, "inst"), "dir"))
9 + ## Run this if the package is installed
10 + for ii=1:length (dirlist)
11 + addpath (fullfile (dirname, dirlist{ii}), "-end")
12 + endfor
13 +else
14 + ## Run this if we are testing the package without installation
15 + for ii=1:length(dirlist)
16 + addpath (fullfile (dirname, "inst", dirlist{ii}))
17 + addpath (fullfile (dirname, "src"))
18 + endfor
19 +endif
20 +
21 +warning ("off", "Octave:fopen-file-in-path");
22 +clear dirlist dirname
23 diff -urN ocs.orig/inst/PKG_DEL ocs/inst/PKG_DEL
24 --- ocs.orig/inst/PKG_DEL 1969-12-31 19:00:00.000000000 -0500
25 +++ ocs/inst/PKG_DEL 2020-09-13 08:06:53.439465439 -0400
26 @@ -0,0 +1,17 @@
27 +dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
28 +dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
29 +
30 +if (! exist (fullfile (dirname, "inst"), "dir"))
31 + ## Run this if the package is installed
32 + for ii=1:length (dirlist)
33 + rmpath (fullfile (dirname, dirlist{ii}))
34 + endfor
35 +else
36 + ## Run this if we are testing the package without installation
37 + for ii=1:length (dirlist)
38 + rmpath (fullfile (dirname, "inst", dirlist{ii}))
39 + endfor
40 + rmpath (fullfile (dirname, "src"))
41 +endif
42 +
43 +clear dirlist dirname
44 diff -urN ocs.orig/PKG_ADD ocs/PKG_ADD
45 --- ocs.orig/PKG_ADD 2020-09-13 07:58:33.528279580 -0400
46 +++ ocs/PKG_ADD 1969-12-31 19:00:00.000000000 -0500
47 @@ -1,18 +0,0 @@
48 -dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
49 -dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
50 -
51 -if (! exist (fullfile (dirname, "inst"), "dir"))
52 - ## Run this if the package is installed
53 - for ii=1:length (dirlist)
54 - addpath (fullfile (dirname, "..", dirlist{ii}), "-end")
55 - endfor
56 -else
57 - ## Run this if we are testing the package without installation
58 - for ii=1:length(dirlist)
59 - addpath (fullfile (dirname, "inst", dirlist{ii}))
60 - addpath (fullfile (dirname, "src"))
61 - endfor
62 -endif
63 -
64 -warning ("off", "Octave:fopen-file-in-path");
65 -clear dirlist dirname
66 diff -urN ocs.orig/PKG_DEL ocs/PKG_DEL
67 --- ocs.orig/PKG_DEL 2020-09-13 07:58:33.528279580 -0400
68 +++ ocs/PKG_DEL 1969-12-31 19:00:00.000000000 -0500
69 @@ -1,17 +0,0 @@
70 -dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
71 -dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
72 -
73 -if (! exist (fullfile (dirname, "inst"), "dir"))
74 - ## Run this if the package is installed
75 - for ii=1:length (dirlist)
76 - rmpath (fullfile (dirname, "..", dirlist{ii}))
77 - endfor
78 -else
79 - ## Run this if we are testing the package without installation
80 - for ii=1:length (dirlist)
81 - rmpath (fullfile (dirname, "inst", dirlist{ii}))
82 - endfor
83 - rmpath (fullfile (dirname, "src"))
84 -endif
85 -
86 -clear dirlist dirname