Ignore:
Timestamp:
01/06/2024 08:48:26 PM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
8525524b
Parents:
2cec8a0
git-author:
Xi Ruoyao <xry111@…> (01/06/2024 08:32:17 PM)
git-committer:
Xi Ruoyao <xry111@…> (01/06/2024 08:48:26 PM)
Message:

zsh: Clean up documentation build and install instruction

The so-called "optional documentation" actually contains nothing more
than the HTML documentations generated by makeinfo --html. So just stop
downloading it.

A change in texinfo-7.0 has actually break makeinfo --html of zsh, but
the issue was hidden due to the inclusion of the "optional
documentation". Use a sed to correct it.

Do not put zsh.txt and zsh.html info the Doc directory, or they'll be
installed to /usr/share/doc/zsh-5.9/html by make install.html.

Also install the FAQ of zsh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/shells/zsh.xml

    r2cec8a0 r7299d5e  
    7373    </itemizedlist>
    7474
    75     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    76     <itemizedlist spacing="compact">
    77       <listitem>
    78         <para>
    79           Optional Documentation: <ulink
    80           url="https://www.zsh.org/pub/zsh-&zsh-version;-doc.tar.xz"/>
    81         </para>
    82       </listitem>
    83       <listitem>
    84         <para>
    85           Documentation MD5 sum: &zsh-doc-md5sum;
    86         </para>
    87       </listitem>
    88       <listitem>
    89         <para>
    90           Documentation download size: &zsh-doc-size;
    91         </para>
    92       </listitem>
    93     </itemizedlist>
    94 
    9575    <note>
    9676      <para>
     
    11595
    11696    <para>
    117       If you downloaded the optional documentation, unpack it with
    118       the following command:
    119     </para>
    120 
    121 <screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.xz</userinput></screen>
     97      Adapt the documentation build system for texinfo-7.0 or later:
     98    </para>
     99
     100<screen><userinput>sed -e 's/set_from_init_file/texinfo_&amp;/' \
     101    -i Doc/Makefile.in</userinput></screen>
    122102
    123103<!--    <note>
     
    138118            --enable-etcdir=/etc/zsh \
    139119            --enable-cap             \
    140             --enable-gdbm                             &amp;&amp;
    141 make                                                  &amp;&amp;
    142 
    143 makeinfo  Doc/zsh.texi --plaintext -o Doc/zsh.txt    &amp;&amp;
    144 makeinfo  Doc/zsh.texi --html      -o Doc/html        &amp;&amp;
    145 makeinfo  Doc/zsh.texi --html --no-split --no-headers -o Doc/zsh.html</userinput></screen>
     120            --enable-gdbm                      &amp;&amp;
     121make                                           &amp;&amp;
     122
     123makeinfo  Doc/zsh.texi --html      -o Doc/html &amp;&amp;
     124makeinfo  Doc/zsh.texi --plaintext -o zsh.txt  &amp;&amp;
     125makeinfo  Doc/zsh.texi --html --no-split --no-headers -o zsh.html</userinput></screen>
    146126
    147127    <para>
     
    161141    </para>
    162142
    163 <screen role="root"><userinput>make install                              &amp;&amp;
    164 make infodir=/usr/share/info install.info &amp;&amp;
    165 
    166 install -v -m755 -d                 /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
    167 install -v -m644 Doc/html/*         /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
    168 install -v -m644 Doc/zsh.{html,txt} /usr/share/doc/zsh-&zsh-version;</userinput></screen>
    169 
    170     <para>
    171       If you downloaded the optional documentation, install it by issuing
    172       the following commands as the
    173       <systemitem class="username">root</systemitem> user:
    174     </para>
    175 
    176 <screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &amp;&amp;
    177 install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
     143<screen role="root"><userinput>make install                                                    &amp;&amp;
     144make infodir=/usr/share/info install.info                       &amp;&amp;
     145make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html           &amp;&amp;
     146install -v -m644 zsh.{html,txt} Etc/FAQ /usr/share/doc/zsh-&zsh-version;</userinput></screen>
    178147
    179148    <para>
Note: See TracChangeset for help on using the changeset viewer.