changeset 130:cea41875feb9

Fix error but still doesn't remove the file.
author gedeone-octave <marcovass89@hotmail.it>
date Thu, 05 Sep 2013 21:45:38 +0200
parents d003a8d6ac58
children 7dd2afcda06c
files post_install.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/post_install.m	Thu Sep 05 21:18:58 2013 +0200
+++ b/post_install.m	Thu Sep 05 21:45:38 2013 +0200
@@ -18,7 +18,7 @@
   endif
 
   mesh = fullfile (desc.dir, "@mesh");
-  [status, msg] = mkdir (func);
+  [status, msg] = mkdir (mesh);
   if (status != 1)
     error ("couldn't create @function directory: %s", msg);
   endif
@@ -28,7 +28,7 @@
     error ("couldn't copy file: %s", msg);
   endif
 
-  delete ('./src/feval.oct');
+  #delete ('./src/feval.oct');
 
   [status, msg, msgid] = movefile ('./src/save.oct', func, 'f');
   if (status != 1)
@@ -37,7 +37,7 @@
 
   delete ('./src/save.oct');
 
-  new_name = fullfile (func, 'plot.oct');
+  new_name = copyfile (func, 'plot.oct');
   [status, msg, msgid] = movefile ('./src/plot_func.oct', new_name, 'f');
   if (status != 1)
     error ("couldn't copy file: %s", msg);