annotate post_install.m @ 238:b96f6b12f8ca

Move ufl to m-file in Poisson example
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Tue, 24 Jun 2014 16:43:13 +0200
parents 3394b84b945e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
175
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
1 ## Copyright (C) 2013 Marco Vassallo <gedeone-octave@users.sourceforge.net>
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
2 ##
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
3 ## This program is free software; you can redistribute it and/or modify it under
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
4 ## the terms of the GNU General Public License as published by the Free Software
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
5 ## Foundation; either version 3 of the License, or (at your option) any later
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
6 ## version.
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
7 ##
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
8 ## This program is distributed in the hope that it will be useful, but WITHOUT
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
9 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
10 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
11 ## details.
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
12 ##
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
13 ## You should have received a copy of the GNU General Public License along with
3394b84b945e Update the information for the release of the pkg.
gedeone-octave <marcovass89@hotmail.it>
parents: 156
diff changeset
14 ## this program; if not, see <http://www.gnu.org/licenses/>.
59
65aa84962d38 Script for post installation process.
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
15
65aa84962d38 Script for post installation process.
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
16 function post_install (desc)
127
64776e1f0530 Copy new function for polymorphism.
gedeone-octave <marcovass89@hotmail.it>
parents: 123
diff changeset
17
156
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
18 include = fullfile (desc.dir, "include");
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
19 [status, msg] = mkdir (include);
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
20 if (status != 1)
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
21 error ("couldn't create include/ directory: %s", msg);
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
22 endif
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
23
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
24 private = fullfile (include, "fem-fenics");
59
65aa84962d38 Script for post installation process.
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
25 [status, msg] = mkdir (private);
65aa84962d38 Script for post installation process.
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
26 if (status != 1)
155
22de20d78e27 Reduced use of post_install.m
gedeone-octave <marcovass89@hotmail.it>
parents: 140
diff changeset
27 error ("couldn't create include/fem-fenics/ directory: %s", msg);
59
65aa84962d38 Script for post installation process.
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
28 endif
156
9681bf18bb95 now the post_install.m move only the header files
gedeone-octave <marcovass89@hotmail.it>
parents: 155
diff changeset
29
127
64776e1f0530 Copy new function for polymorphism.
gedeone-octave <marcovass89@hotmail.it>
parents: 123
diff changeset
30 [status, msg, msgid] = movefile ('./src/*.h', private, 'f');
64776e1f0530 Copy new function for polymorphism.
gedeone-octave <marcovass89@hotmail.it>
parents: 123
diff changeset
31 if (status != 1)
64776e1f0530 Copy new function for polymorphism.
gedeone-octave <marcovass89@hotmail.it>
parents: 123
diff changeset
32 error ("couldn't copy file: %s", msg);
64776e1f0530 Copy new function for polymorphism.
gedeone-octave <marcovass89@hotmail.it>
parents: 123
diff changeset
33 endif
59
65aa84962d38 Script for post installation process.
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff changeset
34 endfunction