Mercurial > fem-fenics-eugenio
changeset 156:9681bf18bb95
now the post_install.m move only the header files
author | gedeone-octave <marcovass89@hotmail.it> |
---|---|
date | Thu, 12 Sep 2013 14:43:23 +0200 |
parents | 22de20d78e27 |
children | 08dc5547f4d6 |
files | post_install.m src/FILES |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/post_install.m Thu Sep 12 14:11:38 2013 +0200 +++ b/post_install.m Thu Sep 12 14:43:23 2013 +0200 @@ -1,11 +1,18 @@ function post_install (desc) - private = fullfile (desc.dir, "include/fem-fenics/"); + include = fullfile (desc.dir, "include"); + [status, msg] = mkdir (include); + if (status != 1) + error ("couldn't create include/ directory: %s", msg); + endif + + private = fullfile (include, "fem-fenics"); [status, msg] = mkdir (private); if (status != 1) error ("couldn't create include/fem-fenics/ directory: %s", msg); endif + [status, msg, msgid] = movefile ('./src/*.h', private, 'f'); if (status != 1) error ("couldn't copy file: %s", msg);