Changeset 4067e17b
- Timestamp:
- 03/30/2004 07:32:43 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 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, gimp3, 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_1, v5_1-pre1, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 6b9ec8d
- Parents:
- aabd7e5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/welcome/changelog.xml
raabd7e5 r4067e17b 11 11 12 12 <itemizedlist> 13 14 <listitem><para>March 30th, 2004 [tushar]: Fixed compressdoc script so that it can 15 be called as compressdoc instead of /usr/bin/compressdoc. Moved the script to 16 /usr/sbin.</para></listitem> 13 17 14 18 <listitem><para>March 30th, 2004 [tushar]: Updated to xfsprogs-2.6.9.</para></listitem> -
postlfs/config/compressdoc.xml
raabd7e5 r4067e17b 11 11 </para> 12 12 13 <screen><userinput><command>cat > /usr/ bin/compressdoc << "EOF"</command>13 <screen><userinput><command>cat > /usr/sbin/compressdoc << "EOF"</command> 14 14 #!/bin/bash 15 # VERSION: 200 31029.002515 # VERSION: 20040320.0026 16 16 # 17 17 # Compress (with bzip2 or gzip) all man pages in a hierarchy and … … 25 25 # compression level, to parse the man.conf for all occurrences of MANPATH, 26 26 # to allow for a backup, to allow to keep the newest version of a page. 27 # Modified 20040330 by Tushar Teredesai to replace $0 by the name of the script. 28 # (Note: It is assumed that the script is in the user's PATH) 27 29 # 28 30 # TODO: … … 43 45 echo "Unknown option : $1" 44 46 fi 45 ( echo "Usage: $ 0<comp_method> [options] [dirs]" && \47 ( echo "Usage: $MY_NAME <comp_method> [options] [dirs]" && \ 46 48 cat << EOT 47 49 Where comp_method is one of : … … 145 147 return 1 146 148 } 149 150 # Name of the script 151 MY_NAME=`basename $0` 147 152 148 153 # OK, parse the command-line for arguments, and initialize to some sensible … … 339 344 # I need not pass --conf, as I specify the directory to work on 340 345 # But I need exit in case of error 341 "$ 0" ${COMP_METHOD} ${COMP_LVL} ${LN_OPT} ${VERBOSE_OPT} ${FORCE_OPT} "${DIR}/${FILE}" || exit 1346 "$MY_NAME" ${COMP_METHOD} ${COMP_LVL} ${LN_OPT} ${VERBOSE_OPT} ${FORCE_OPT} "${DIR}/${FILE}" || exit 1 342 347 echo "<- Leaving ${DIR}/${FILE}." > $DEST_FD1 343 348 cd "$DIR" # Needed for the next iteration of the loop … … 450 455 done # for DIR 451 456 <command>EOF 452 chmod 755 /usr/ bin/compressdoc</command></userinput></screen>457 chmod 755 /usr/sbin/compressdoc</command></userinput></screen> 453 458 454 459 <para>Now, as root, you can issue a 455 <command> /usr/bin/compressdoc --bz2</command> to compress all your system man456 pages. You can also run <command> /usr/bin/compressdoc --help</command> to get460 <command>compressdoc --bz2</command> to compress all your system man 461 pages. You can also run <command>compressdoc --help</command> to get 457 462 a comprehensive help about what the script is able to do.</para> 458 463
Note:
See TracChangeset
for help on using the changeset viewer.