Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FILES=$(echo "man1/mailq.1
man1/newaliases.1
man1/postalias.1.gz
man1/postcat.1.gz
man1/postconf.1.gz
man1/postdrop.1.gz
man1/postfix.1.gz
man1/postkick.1.gz
man1/postlock.1.gz
man1/postlog.1.gz
man1/postmap.1.gz
man1/postmulti.1.gz
man1/postqueue.1.gz
man1/postsuper.1.gz
man1/sendmail.1.gz
man5/access.5.gz
man5/aliases.5.gz
man5/body_checks.5
man5/bounce.5.gz
man5/canonical.5.gz
man5/cidr_table.5.gz
man5/generics.5.gz
man5/generic.5.gz
man5/header_checks.5.gz
man5/ldap_table.5.gz
man5/master.5.gz
man5/mysql_table.5.gz
man5/nisplus_table.5.gz
man5/pcre_table.5.gz
man5/pgsql_table.5.gz
man5/postconf.5.gz
man5/postfix-wrapper.5.gz
man5/regexp_table.5.gz
man5/relocated.5.gz
man5/tcp_table.5.gz
man5/transport.5.gz
man5/virtual.5.gz
man8/bounce.8.gz
man8/cleanup.8.gz
man8/anvil.8.gz
man8/defer.8
man8/discard.8.gz
man8/error.8.gz
man8/flush.8.gz
man8/lmtp.8
man8/local.8.gz
man8/master.8.gz
man8/nqmgr.8.gz
man8/oqmgr.8.gz
man8/pickup.8.gz
man8/pipe.8.gz
man8/proxymap.8.gz
man8/qmgr.8.gz
man8/qmqpd.8.gz
man8/scache.8.gz
man8/showq.8.gz
man8/smtp.8.gz
man8/smtpd.8.gz
man8/spawn.8.gz
man8/tlsmgr.8.gz
man8/trace.8
man8/trivial-rewrite.8.gz
man8/verify.8.gz")
for file in $FILES; do
file="/usr/share/man/$file"
file_without_gz="$(dirname $file)/$(basename $file .gz)"
if [ "$file" != "$file_without_gz" ]; then
if [ ! -f "$file" ]; then
echo "gzip -c $file_without_gz > $file"
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.