فهرست منبع

Replaced hardcoded Vim data directory name by an entity.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8148 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 سال پیش
والد
کامیت
5111cd577a
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 2
      chapter06/vim.xml
  2. 1 0
      packages.ent

+ 2 - 2
chapter06/vim.xml

@@ -112,7 +112,7 @@ done</userinput></screen>
     class="directory">/usr/share/doc/vim-&vim-version;</filename>, making
     class="directory">/usr/share/doc/vim-&vim-version;</filename>, making
     it consistent with the location of documentation for other packages:</para>
     it consistent with the location of documentation for other packages:</para>
 
 
-<screen><userinput>ln -sv ../vim/vim70/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
+<screen><userinput>ln -sv ../&vim-docdir;/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
 
 
     <para>If an X Window System is going to be installed on the LFS
     <para>If an X Window System is going to be installed on the LFS
     system, it may be necessary to recompile Vim after installing X. Vim
     system, it may be necessary to recompile Vim after installing X. Vim
@@ -177,7 +177,7 @@ EOF</userinput></screen>
       <filename>*.spl</filename> and optionally, the <filename>*.sug</filename>
       <filename>*.spl</filename> and optionally, the <filename>*.sug</filename>
       files for your language and character encoding from <ulink
       files for your language and character encoding from <ulink
       url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and save them to
       url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and save them to
-      <filename class='directory'>/usr/share/vim/vim70/spell/</filename>.</para>
+      <filename class='directory'>/usr/share/&vim-docdir;/spell/</filename>.</para>
 
 
       <para>To use these spell files, some configuration in
       <para>To use these spell files, some configuration in
       <filename>/etc/vimrc</filename> is needed, e.g.:</para>
       <filename>/etc/vimrc</filename> is needed, e.g.:</para>

+ 1 - 0
packages.ent

@@ -507,6 +507,7 @@
 <!ENTITY util-linux-ch6-sbu "0.2 SBU">
 <!ENTITY util-linux-ch6-sbu "0.2 SBU">
 
 
 <!ENTITY vim-version "7.1">
 <!ENTITY vim-version "7.1">
+<!ENTITY vim-docdir "vim/vim71">
 <!ENTITY vim-size "6,714 KB">
 <!ENTITY vim-size "6,714 KB">
 <!ENTITY vim-url "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
 <!ENTITY vim-url "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2">
 <!ENTITY vim-md5 "44c6b4914f38d6f9aa959640b89da329">
 <!ENTITY vim-md5 "44c6b4914f38d6f9aa959640b89da329">