view misc/update-manpage-date @ 203:45acc5727493

removed --with-glib-static configure option linking glib statically is interesting if no other program uses it on today's systems glib is widely used if one cares on linking statically, he can link everything statically the special case for glib will not get special care anymore
author meillo@marmaro.de
date Fri, 16 Jul 2010 14:48:17 +0200
parents 0976977ccc52
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