#!/usr/bin/env bash

#for f in `find . -type f ! -path './.*' ! -name '*.gz' ! -name '*.png' ! -name '*.jpg'`
for f in `find . -type f ! -path './.*' ! -name '*.gz'`
do
	if [ ! -f "$f.gz" ] || [ "$f" -nt "$f.gz" ]
	then
		echo Compressing "$f"
		gzip --force --keep --best "$f"
	fi
done
