3 # $NetBSD: setversion,v 1.1.1.1 1996/01/07 21:54:17 leo Exp $
5 function revcmp
(r1
, r2
, n1
, n2
, a1
, a2
, n
, i
) {
6 n1 =
split(r1
, a1
, "\.")
7 n2 =
split(r2
, a2
, "\.")
8 n =
(n1
< n2
) ? n1
: n2
10 for (i =
1; i
<= n
; ++i
) {
25 if (revcmp
($
4, rev
) > 0)
31 while ((e =
getline <destfile
) > 0) {
32 if (/"\$Revision.*\$"/)
33 sub("\\\$Revision.*\\\$", "Revision " rev
)