sethomedirectory is obsolete (already since 5.0) removed in 5.3
Allan CORNET [Mon, 27 Jul 2009 09:54:26 +0000 (11:54 +0200)]
scilab/CHANGES_5.2.X
scilab/modules/core/help/en_US/sethomedirectory.xml
scilab/modules/core/help/pt_BR/sethomedirectory.xml
scilab/modules/core/macros/sethomedirectory.sci

index e5c0b32..73e435c 100644 (file)
@@ -64,6 +64,8 @@ Core functions:
      + predef
      + type
      + typename
+     
+ - sethomedirectory is obsolete. 
 
 fileio functions:
 =================
index b4ceaad..864bfe6 100644 (file)
@@ -9,10 +9,11 @@
   </refnamediv>
   <refsynopsisdiv>
     <title>Calling Sequence</title>
-    <synopsis>[home,scilabhome]=sethomedirectory()</synopsis>
+    <synopsis>[home,scilabhome] = sethomedirectory()</synopsis>
   </refsynopsisdiv>
   <refsection>
     <title>Description</title>
+    <para>DEPRECATED : You need to use "SCIHOME" and "home" scilab variables.</para>
     <para>Set Scilab home path : "SCIHOME" variable.</para>
     <para>On Windows 2k and XP , C:\Documents and
     Settings\&lt;User&gt;\Scilab\&lt;Scilab-Version&gt;</para>
index 18ba578..7a3fea9 100644 (file)
   <refsynopsisdiv>
     <title>Seqüência de Chamamento</title>
 
-    <synopsis>[home,scilabhome]=sethomedirectory()</synopsis>
+    <synopsis>[home,scilabhome] = sethomedirectory()</synopsis>
   </refsynopsisdiv>
 
   <refsection>
     <title>Descrição</title>
-
+    <para>DEPRECATED : You need to use "SCIHOME" and "home" scilab variables.</para>
     <para>Ajusta o endereço hom do Scilab : variável "SCIHOME".</para>
 
     <para>No Windows 2k e XP , C:\Documents and
index 8fd93fc..bf88aba 100644 (file)
@@ -8,13 +8,13 @@
 // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 
 //------------------------------------------------------------------------------
-function [HomeDirectory,ScilabHomeDirectory]=sethomedirectory(varargin)
-  nv=size(varargin);
-       ScilabHomeDirectory=SCIHOME;
-       HomeDirectory=getenv('HOME',SCI);
+function [HomeDirectory,ScilabHomeDirectory] = sethomedirectory(varargin)
+  nv = size(varargin);
+       ScilabHomeDirectory = SCIHOME;
+       HomeDirectory = home;
 
-  if nv==1 then // to set Scilab home with a path
-    warning(gettext("Obsolete: Define SCIHOME and HOME before to launch Scilab."));
+  if nv == 1 then // to set Scilab home with a path
+    warnobsolete("SCIHOME","5.3");
   end
 endfunction
 //------------------------------------------------------------------------------