-
-
Notifications
You must be signed in to change notification settings - Fork 307
Expand file tree
/
Copy pathcompare-tlgs.sh
More file actions
38 lines (33 loc) · 916 Bytes
/
compare-tlgs.sh
File metadata and controls
38 lines (33 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
for toplevel in base required/amsmath required/cyrillic required/firstaid required/graphics required/latex-lab required/tools; do
echo "----------------- toplevel: $toplevel ----------------------"
returndir=`pwd`
cd $toplevel
for d in `ls -d testfiles*`; do
echo "----------------- $d ----------------------"
cd $d
for f in `ls *.xetex.tlg 2>/dev/null` ; do
echo Handle FILE $f
BASE=`basename $f '.xetex.tlg'`
cmp -s $f $BASE.tlg
if test $? -eq 0 ; then
echo " ==> identical with $BASE.tlg ==="
echo " --> removing $f"
rm $f
echo " "
fi
done
for f in `ls *.luatex.tlg 2>/dev/null` ; do
echo Handle FILE $f
BASE=`basename $f '.luatex.tlg'`
cmp -s $f $BASE.tlg
if test $? -eq 0 ; then
echo " ==> identical with $BASE.tlg ==="
echo " --> removing $f"
rm $f
echo " "
fi
done
cd ..
done
cd $returndir
done