Changeset a72f9b7 for postlfs


Ignore:
Timestamp:
10/29/2003 01:36:30 PM (21 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, 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, v5_0, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.