repo.or.cz
/
nvi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
preparatory changes
[nvi.git]
/
docs
/
vi.ref
/
merge.awk
blob
95f9185039e49b892d55400fab1a25ffffc798d0
1
# $Id: merge.awk,v 8.3 1994/05/25 23:45:36 bostic Exp $ (Berkeley) $Date: 1994/05/25 23:45:36 $
2
#
3
# merge index entries into one line per label
4
$
1
== prev
{
5
printf
", %s"
,
$
2
;
6
next
;
7
}
8
{
9
if
(
NR
!=
1
)
10
printf
"
\n
"
;
11
printf
"%s
\t
%s"
,
$
1
,
$
2
;
12
prev = $
1
;
13
}
14
END
{
15
printf
"
\n
"
16
}