Mercurial > octave
changeset 21510:ddfd7e5f8d18
pkg: support PKG_ADD file in inst/.
* pkg/private/create_pkgadddel.m: inst/ is meant to be the directory of
the package "ready" to install" and all files within it are copied to
the arch independent directory of the package. However, when reading
the m files for PKG_ADD directives, it clobers an existing PKG_ADD file.
So append to such file if it exists.
This change will break "pkg build" since it is unable to guess the right
place for the PKG_ADD (but it is already broken, see bug #45369).
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Sun, 20 Mar 2016 21:39:49 +0000 |
parents | dcee67d28570 |
children | e1c5aca1c798 |
files | scripts/pkg/private/create_pkgadddel.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/pkg/private/create_pkgadddel.m Fri May 29 00:25:46 2015 +0100 +++ b/scripts/pkg/private/create_pkgadddel.m Sun Mar 20 21:39:49 2016 +0000 @@ -24,7 +24,7 @@ function create_pkgadddel (desc, packdir, nm, global_install) instpkg = fullfile (desc.dir, nm); - instfid = fopen (instpkg, "wt"); + instfid = fopen (instpkg, "at"); # append to support PKG_ADD at inst/ ## If it is exists, most of the PKG_* file should go into the ## architecture dependent directory so that the autoload/mfilename ## commands work as expected. The only part that doesn't is the