Mercurial > fem-fenics-eugenio
view post_install.m @ 128:d3c29e38e5d2
New naming convention adopted and Polymorphism for plot and save.
* plot_mesh.cc: obtained merging Plot_2d.cc Plot_3d.cc fem_plot.cc
* plot_func.cc: obtined from fem_plot.cc
* fem_save.cc moved to sace.cc
author | gedeone-octave <marcovass89@hotmail.it> |
---|---|
date | Thu, 05 Sep 2013 20:49:36 +0200 |
parents | 64776e1f0530 |
children | cea41875feb9 |
line wrap: on
line source
function post_install (desc) private = fullfile (desc.dir, "private"); [status, msg] = mkdir (private); if (status != 1) error ("couldn't create private directory: %s", msg); endif [status, msg, msgid] = movefile ('./src/*.h', private, 'f'); if (status != 1) error ("couldn't copy file: %s", msg); endif func = fullfile (desc.dir, "@function"); [status, msg] = mkdir (func); if (status != 1) error ("couldn't create @function directory: %s", msg); endif mesh = fullfile (desc.dir, "@mesh"); [status, msg] = mkdir (func); if (status != 1) error ("couldn't create @function directory: %s", msg); endif [status, msg, msgid] = movefile ('./src/feval.oct', func, 'f'); if (status != 1) error ("couldn't copy file: %s", msg); endif delete ('./src/feval.oct'); [status, msg, msgid] = movefile ('./src/save.oct', func, 'f'); if (status != 1) error ("couldn't copy file: %s", msg); endif delete ('./src/save.oct'); new_name = fullfile (func, 'plot.oct'); [status, msg, msgid] = movefile ('./src/plot_func.oct', new_name, 'f'); if (status != 1) error ("couldn't copy file: %s", msg); endif new_name = fullfile (mesh, 'plot.oct'); [status, msg, msgid] = movefile ('./src/plot_mesh.oct', new_name, 'f'); if (status != 1) error ("couldn't copy file: %s", msg); endif delete ('./src/plot.oct'); endfunction