On Sun, Apr 25, 2010 at 03:01:31PM +0200, Marc Espie wrote: > - create a script in your PATH that cleans up things, in my case, > ~/bin/openbsd-zap > > #! /usr/bin/perl -p > # what ? you expected another scripting language > s/\$OpenBSD\:.*?\$/\$OpenBSD\$/g; > s/[ \t]+$//; # jmc's gonna love that
PS2: the following script handles more situations: #! /usr/bin/perl -p s/\$(OpenBSD|Mdocdate|Id)\:.*?\$/\$$1\$/gs; s/[ \t]+$//;