repo.or.cz
/
docutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
removed obsolete issues (many of them fixed with AE)
[docutils.git]
/
sandbox
/
grubert
/
check
blob
bf46570f67699606d3fcc1f6b93c54ee163111b7
1
#!/bin/sh
2
3
EXT
=
tex
4
REF_DIR
=
test
5
if
[
"
$1
"
=
"man"
] ;
then
6
REF_DIR
=
man.
test
7
EXT
=
man
8
shift
9
fi
10
11
if
[
"
$1
"
=
"create"
] ;
then
12
CREATE
=
1
13
fi
14
15
TMPF
=
.
diff
.tmp
16
for
F
in
`ls
$REF_DIR
/*.txt*.
$EXT
`
;
do
17
diff
-s -u
$F
.ref
$F
>
$TMPF
18
if
test
$?
-gt
0
;
then
19
less
$TMPF
20
if
[
"
$CREATE
"
==
"1"
] ;
then
21
mv
$F $F
.ref
22
fi
23
fi
24
done
25
rm
$TMPF