~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/fileio/help/pt_BR/getrelativefilename.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="ISO-8859-1"?>
2
 
<!--
3
 
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
 
 * Copyright (C) XXXX-2008 - INRIA
5
 
 * 
6
 
 * This file must be used under the terms of the CeCILL.
7
 
 * This source file is licensed as described in the file COPYING, which
8
 
 * you should have received as part of this distribution.  The terms
9
 
 * are also available at    
10
 
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11
 
 *
12
 
 -->
13
 
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="getrelativefilename" xml:lang="en">
14
 
  <refnamediv>
15
 
    <refname>getrelativefilename</refname>
16
 
    <refpurpose>dado um nome de diret�rio absoluto e um nome de arquivo
17
 
      relativo, retorna um nome de arquivo relativo.
18
 
    </refpurpose>
19
 
  </refnamediv>
20
 
  <refsynopsisdiv>
21
 
    <title>Seq��ncia de Chamamento</title>
22
 
    <synopsis>rel_file = getrelativefilename(abs_dir,abs_file)</synopsis>
23
 
  </refsynopsisdiv>
24
 
  <refsection>
25
 
    <title>Par�metros</title>
26
 
    <variablelist>
27
 
      <varlistentry>
28
 
        <term>abs_dir</term>
29
 
        <listitem>
30
 
          <para>string : o diret�rio absoluto</para>
31
 
        </listitem>
32
 
      </varlistentry>
33
 
      <varlistentry>
34
 
        <term>abs_file</term>
35
 
        <listitem>
36
 
          <para>string : o nome de arquivo absoluto</para>
37
 
        </listitem>
38
 
      </varlistentry>
39
 
      <varlistentry>
40
 
        <term>rel_file</term>
41
 
        <listitem>
42
 
          <para>string : o nome de arquivo relativo</para>
43
 
        </listitem>
44
 
      </varlistentry>
45
 
    </variablelist>
46
 
  </refsection>
47
 
  <refsection>
48
 
    <title>Descri��o</title>
49
 
    <para>dado um nome de diret�rio absoluto e um nome de arquivo relativo,
50
 
      retorna um nome de arquivo relativo.
51
 
    </para>
52
 
    <para>Por exemplo, se o diret�rio corrente � C:\scilab\bin e o nome de
53
 
      arquivo C:\scilab\modules\helptools\readme.txt � dado, getrelativefilename
54
 
      retornar� ..\modules\helptools\readme.txt.
55
 
    </para>
56
 
  </refsection>
57
 
  <refsection>
58
 
    <title>Exemplos</title>
59
 
    <programlisting role="example"><![CDATA[ 
60
 
if getos() == 'Windows' then
61
 
  getrelativefilename('C:\program file\scilab-4.0\bin','C:\program file\scilab-4.0\modules\helptools\help.dtd')
62
 
  getrelativefilename('C:\program file\scilab-4.0\bin\','C:\program file\scilab-4.0\modules\helptools\help.dtd')
63
 
  getrelativefilename(SCI+'\bin',SCI+'\modules\helptools\help.dtd')
64
 
  getrelativefilename(WSCI+'\bin',WSCI+'\modules\helptools\help.dtd')
65
 
  getrelativefilename(pwd(),WSCI+'\bin\Wscilex')
66
 
else
67
 
  getrelativefilename('/usr/local/scilab-4.0/bin','/usr/local/scilab-4.0/modules/helptools/help.dtd')
68
 
  getrelativefilename('/usr/local/scilab-4.0/bin/','/usr/local/scilab-4.0/modules/helptools/help.dtd')
69
 
  getrelativefilename(SCI+'/bin',SCI+'/modules/helptools/help.dtd')
70
 
  getrelativefilename(pwd(),SCI+'/bin/scilex')
71
 
end
72
 
 ]]></programlisting>
73
 
  </refsection>
74
 
  <refsection role="see also">
75
 
    <title>Ver Tamb�m</title>
76
 
    <simplelist type="inline">
77
 
      <member>
78
 
        <link linkend="getshortpathname">getshortpathname</link>
79
 
      </member>
80
 
      <member>
81
 
        <link linkend="getlongpathname">getlongpathname</link>
82
 
      </member>
83
 
      <member>
84
 
        <link linkend="pwd">pwd</link>
85
 
      </member>
86
 
    </simplelist>
87
 
  </refsection>
88
 
</refentry>