#! /bin/sh # Convert a pod file into a usage function for the GeographicLib utilities. SOURCE=$1 NAME=`basename $SOURCE .pod` VERSION=$2 ( cat</dev/null | col -b -x | sed -e 1,/SYNOPSIS/d -e '/^$/,$d' -e 's/ / /g' -e 's/$/\\n\\/' -e 's/"/\\"/g' cat </dev/null | col -b -x | head --lines -4 | tail --lines +5 | sed -e 's/\\/\\\\/g' -e 's/$/\\n\\/' -e 's/"/\\"/g' cat <