qelectrotech-source-mirror/man/compress_man_pages.sh

11 lines
284 B
Bash
Raw Normal View History

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