Mercurial > masqmail
view devel/update-manpage-date @ 278:c35c59a36a2a
added -bm for mode accept (the other MTAs have it too)
usually one does not need it as it's the default
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Mon, 06 Dec 2010 17:41:50 -0300 |
parents | 7b70bf4f1f42 |
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