qelectrotech-source-mirror/man/compress_man_pages.sh
scorpio810 dbd2c3707f When compressing man, do not save the time stamp by default
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3687 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-02-05 19:05:54 +00:00

11 lines
288 B
Bash
Executable File

#!/bin/bash
# Compresses every man page
APP=qelectrotech.1
MAN_DIR=$(dirname $0)/files
find ${MAN_DIR} -type f -name "${APP}" -exec gzip -9n {} \;
# correct files permissions
find ${MAN_DIR} -type d -exec chmod a+rx {} \;
find ${MAN_DIR} -type f -name "${APP}.gz" -exec chmod a+r {} \;