Changeset a72f9b7


Ignore:
Timestamp:
10/29/2003 01:36:30 PM (18 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 6.0, 6.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, ken/refactor-virt, krejzi/svn, lazarus, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, v5_0, v5_1, v5_1-pre1, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
a3bccff
Parents:
ee60dff
Message:

applied Yann's patch

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    ree60dff ra72f9b7  
    1111
    1212<itemizedlist>
     13
     14<listitem><para>October 29th, 2003 [igor]: Applied the compressdoc
     15patch submitted by Yann E. Morin.</para></listitem>
    1316
    1417<listitem><para>October 29th, 2003 [tushar]: Added warning that the
  • postlfs/config/compressdoc.xml

    ree60dff ra72f9b7  
    1313<screen><userinput><command>cat &gt; /usr/bin/compressdoc &lt;&lt; "EOF"</command>
    1414#!/bin/bash
    15 # VERSION: 20031009.1920
     15# VERSION: 20031029.0025
    1616#
    1717# Compress (with bzip2 or gzip) all man pages in a hierarchy and
     
    2929#        - choose a default compress method to be based on the available
    3030#          tool : gzip or bzip2;
     31#        - offer an option to automagically choose the best compression method
     32#          on a per page basis (eg. check which ofgzip/bzip2/whatever is the
     33#          most effective, page per page);
    3134#        - when a MANPATH env var exists, use this instead of /etc/man.conf
    3235#          (useful for users to (de)compress their man pages;
     
    133136  # Look for, and keep, the most recent one
    134137  LATEST=`(cd "$DIR"; ls -1rt "${BASENAME}" "${GZ_FILE}" "${BZ_FILE}" 2&gt;/dev/null | tail -1)`
    135   for i in "${BASENAME}" "${GZ_FILE}".gz "${BZ_FILE}".bz2; do
     138  for i in "${BASENAME}" "${GZ_FILE}" "${BZ_FILE}"; do
    136139    [ "$LATEST" != "$i" ] &amp;&amp; rm -f "$DIR"/"$i"
    137140  done
     
    327330    if [ ! -L "$FILE" -a ! -e "$FILE" ]; then continue; fi
    328331
     332    # Do not compress whatis files
     333    if [ "$FILE" = "whatis" ]; then continue; fi
     334
    329335    if [ -d "$FILE" ]; then
    330336      cd "${MEM_DIR}"  # Go back to where we ran "$0", in case "$0"=="./compressdoc" ...
Note: See TracChangeset for help on using the changeset viewer.