#!/bin/sh # # simple script by T.Pospisek to view a # [[g]zip|compressed] podfile # # GPLed # VERSION=0.1 function help () { echo $0 $VERSION: use as filter or pass pod file as argument } # STDIN is a terminal (and not a pipe) if [ -t 0 ] then if [ -z "$1" ] then echo Error: help exit fi zcat -f $1 | pod2man | man -l - # STDIN is a pipe else cat /dev/stdin | zcat -f | pod2man | man -l - fi