summaryrefslogtreecommitdiff
path: root/plan9/versnum
blob: 83e46826c34404cfe25a041e6efbb549d24a3b09 (plain)
1
2
3
4
5
6
7
8
/PATCHLEVEL/ {base = $3}
/SUBVERSION/ {subvers = $3}
END {
if (subvers == 0) 
	printf "p9pvers = 5.%03d\n", base> "buildinfo";
else
	printf "p9pvers = 5.%03d_%02d\n" , base, subvers> "buildinfo";
}