Changeset 9545a987
- Timestamp:
- 03/18/2006 06:15:56 PM (18 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- e5254ec
- Parents:
- 74bafa2c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
general.ent
r74bafa2c r9545a987 1 <!ENTITY day "1 6"> <!-- Always 2 digits -->1 <!ENTITY day "18"> <!-- Always 2 digits --> 2 2 <!ENTITY month "03"> <!-- Always 2 digits --> 3 3 <!ENTITY year "2006"> -
introduction/welcome/changelog.xml
r74bafa2c r9545a987 43 43 44 44 <listitem> 45 <para>March 18th, 2006</para> 46 <itemizedlist> 47 <listitem> 48 <para>[dnicholson] - Updated compressdoc script to use Man-DB.</para> 49 </listitem> 50 </itemizedlist> 51 </listitem> 52 53 <listitem> 45 54 <para>March 16th, 2006</para> 46 55 <itemizedlist> -
postlfs/config/compressdoc.xml
r74bafa2c r9545a987 22 22 <para>Man and info reader programs can transparently process files compressed 23 23 with <command>gzip</command> or <command>bzip2</command>, a feature you can 24 use to free some disk space while keeping 25 your documentation available. However, things are not that simple; man 26 directories tend to contain links—hard and symbolic—which defeat 27 simple ideas like recursively calling <command>gzip</command> on them. A 28 better way to go is to use the script below.</para> 24 use to free some disk space while keeping your documentation 25 available. However, things are not that simple; man directories tend to 26 contain links—hard and symbolic—which defeat simple ideas like 27 recursively calling <command>gzip</command> on them. A better way to go is 28 to use the script below. If you would prefer to download the file instead of 29 creating it by typing or cut-and-pasting, you can find it at 30 <ulink url="&files-anduin;/compressdoc"/> (the file should be installed in 31 the <filename class="directory">/usr/sbin</filename> directory).</para> 29 32 30 33 <screen role="root"><userinput>cat > /usr/sbin/compressdoc << "EOF" 31 34 <literal>#!/bin/bash 32 # VERSION: 200 50112.002735 # VERSION: 20060311.0028 33 36 # 34 37 # Compress (with bzip2 or gzip) all man pages in a hierarchy and … … 50 53 # Modified 20050112 by Randy McMurchy to shorten line lengths and 51 54 # correct grammar errors. 55 # 56 # Modified 20060128 by Alexander E. Patrakov for compatibility with Man-DB. 57 # 58 # Modified 20060311 by Archaic to use Man-DB manpath utility which is a 59 # replacement for man --path from Man. 52 60 # 53 61 # TODO: … … 105 113 106 114 --conf=dir, --conf dir 107 Specify the location of man .conf. Defaults to /etc.115 Specify the location of man_db.conf. Defaults to /etc. 108 116 109 117 --verbose, -v Verbose mode, print the name of the directory being … … 111 119 and to print the name of the file being processed. 112 120 113 --fake, -f Fakes it. Print the actual parameters comp manwill use.121 --fake, -f Fakes it. Print the actual parameters compressdoc will use. 114 122 115 123 dirs A list of space-separated _absolute_ pathnames to the 116 man directories. When empty, and only then, parse 117 ${MAN_CONF}/man.conf for all occurrences of MANPATH. 124 man directories. When empty, and only then, use manpath 125 to parse ${MAN_CONF}/man_db.conf for all valid occurrences 126 of MANDATORY_MANPATH. 118 127 119 128 Note about compression: … … 180 189 # OK, parse the command-line for arguments, and initialize to some 181 190 # sensible state, that is: don't change links state, parse 182 # /etc/man .conf, be most silent, search man.conf in /etc, and don't191 # /etc/man_db.conf, be most silent, search man_db.conf in /etc, and don't 183 192 # force (re-)compression. 184 193 COMP_METHOD= … … 290 299 # with a trailing '/', once without. 291 300 if [ -z "$MAN_DIR" ]; then 292 MAN_DIR=`man --path -C "$MAN_CONF"/man.conf \301 MAN_DIR=`manpath -C "$MAN_CONF"/man_db.conf \ 293 302 | sed 's/:/\\n/g' \ 294 303 | while read foo; do dirname "$foo"/.; done \ … … 297 306 fi 298 307 299 # If no MAN PATH in ${MAN_CONF}/man.conf, abort as well308 # If no MANDATORY_MANPATH in ${MAN_CONF}/man_db.conf, abort as well 300 309 if [ -z "$MAN_DIR" ]; then 301 echo "No directory specified, and no directory found with \`man --path'"310 echo "No directory specified, and no directory found with \`manpath'" 302 311 exit 1 303 312 fi … … 318 327 echo -n "Force compression.: " 319 328 [ "foo$FORCE_OPT" = "foo-F" ] && echo "yes" || echo "no" 320 echo "man .conf is.......: ${MAN_CONF}/man.conf"329 echo "man_db.conf is....: ${MAN_CONF}/man_db.conf" 321 330 echo -n "Hard-links........: " 322 331 [ "foo$LN_OPT" = "foo-S" ] && … … 495 504 done # for DIR</literal> 496 505 497 EOF 498 chmod 755 /usr/sbin/compressdoc</userinput></screen> 506 EOF</userinput></screen> 507 508 <para>As <systemitem class="username">root</systemitem>, make 509 <command>compressdoc</command> executable for all users:</para> 510 511 <screen><userinput>chmod -v 755 /usr/sbin/compressdoc</userinput></screen> 499 512 500 513 <para>Now, as <systemitem class="username">root</systemitem>, you can issue … … 503 516 comprehensive help about what the script is able to do.</para> 504 517 505 <para> 518 <para>Don't forget that a few programs, like the <application>X Window 506 519 System</application> and <application>XEmacs</application> also 507 520 install their documentation in non-standard places (such as 508 521 <filename class="directory">/usr/X11R6/man</filename>, etc.). Be sure 509 to add these locations to the file <filename>/etc/man.conf</filename>, as 510 <envar>MANPATH</envar> <replaceable>[/path]</replaceable> lines.</para> 511 512 <para> Example:</para> 522 to add these locations to the file <filename>/etc/man_db.conf</filename>, as 523 <envar>MANDATORY_MANPATH</envar> <replaceable>[/path]</replaceable> 524 lines.</para> 525 526 <para>Example:</para> 513 527 514 528 <screen><literal> ... 515 MAN PATH/usr/share/man516 MAN PATH /usr/local/man517 MAN PATH /usr/X11R6/man518 MAN PATH/opt/qt/doc/man529 MANDATORY_MANPATH /usr/share/man 530 MANDATORY_MANPATH /usr/X11R6/man 531 MANDATORY_MANPATH /usr/local/man 532 MANDATORY_MANPATH /opt/qt/doc/man 519 533 ...</literal></screen> 520 534
Note:
See TracChangeset
for help on using the changeset viewer.