Changeset 47aad0c8


Ignore:
Timestamp:
04/21/2008 11:27:43 PM (16 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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:
6ba92b5
Parents:
62b2fb0
Message:

compressdoc: Compress warnings from manpath(1) when $MANPATH is set

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7393 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/compressdoc.xml

    r62b2fb0 r47aad0c8  
    3333<screen role="root"><?dbfo keep-together="auto"?><userinput>cat &gt; /usr/sbin/compressdoc &lt;&lt; "EOF"
    3434<literal>#!/bin/bash
    35 # VERSION: 20080421.1320
     35# VERSION: 20080421.1623
    3636#
    3737# Compress (with bzip2 or gzip) all man pages in a hierarchy and
     
    7070# fixes were added by Dan Nicholson.
    7171#
     72# Modified 20080421 by Dan Nicholson to suppress warnings from manpath
     73# since these are emitted when $MANPATH is set. Removed the TODO for
     74# using the $MANPATH variable since manpath(1) handles this already.
     75#
    7276# TODO:
    7377#     - choose a default compress method to be based on the available
    7478#       tool : gzip or bzip2;
    75 #     - when a MANPATH env var exists, use this instead of /etc/man_db.conf
    76 #       (useful for users to (de)compress their man pages;
    7779#     - offer an option to restore a previous backup;
    7880#     - add other compression engines (compress, zip, etc?). Needed?
     
    317319# with a trailing '/', once without.
    318320if [ -z "$MAN_DIR" ]; then
    319   MAN_DIR=`manpath -C "$MAN_CONF"/man_db.conf \
     321  MAN_DIR=`manpath -q -C "$MAN_CONF"/man_db.conf \
    320322            | sed 's/:/\\n/g' \
    321323            | while read foo; do dirname "$foo"/.; done \
Note: See TracChangeset for help on using the changeset viewer.