Mercurial > masqmail
view devel/list-versions @ 340:60bb2dbe2866 0.3.3
In the tests: replaced logname(1) with $LOGNAME
Because logname(1) may not work if it has no controlling terminal.
See: http://aplawrence.com/cgi-bin/printer.pl?arg=/Forum/TonyLawrence8.html
Be it that reason or not, it didn't work on Crux, but $LOGNAME is set.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 31 Aug 2011 09:14:38 +0200 |
parents | a6404efa35bc |
children |
line wrap: on
line source
#!/bin/sh # # list the version numbers in several important files # run this script before generating a release ( grep '^AC_INIT' /dev/null configure.* printf "Changelog:" sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' ChangeLog printf "NEWS:" sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' NEWS grep '^\.TH' /dev/null man/*.[0-9] #) | sed 's~\([^:]*\):.*\([0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}\).*~\2 \1~' ) | awk -F: '{ file=$1; match($0, /[0-9]\.[0-9]+\.[0-9]+(-[A-Za-z0-9_+-]+)?/); print(substr($0, RSTART, RLENGTH) " " $1); }'