Mercurial > masqmail-0.2
view misc/update-manpage-date @ 159:949ccc02eecf
adjusted masqmail's path to /usr/local/...
and added the /usr/lib/sendmail link
author | meillo@marmaro.de |
---|---|
date | Fri, 16 Jul 2010 09:41:25 +0200 |
parents | d56914eb9f75 |
children |
line wrap: on
line source
#!/bin/sh # # update the date and version of man pages if [ $# -lt 2 ] ; then echo "usage: update-manpage-header VERSION FILES..." >&2 exit 1 fi date=`date +%Y-%m-%d` version="$1" shift for i do ed -s "$i" <<! /^\.TH/s#[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}#$date# s#[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}#$version# p w q ! done