aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/cmpOld2NewDups.sh
blob: 4d3e1e35aef90c78ae698d6f620b7f7ef9846c3d (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#! /bin/bash

dircmp=cmp-old2new

GLFILES="$dircmp/GL2ES1-new.java \
 $dircmp/GLES1-new.java \
 $dircmp/GL2ES2-new.java \
 $dircmp/GLES2-new.java \
 $dircmp/GL3ES3-new.java \
 $dircmp/GL2GL3-new.java \
 $dircmp/GL2-new.java \
 $dircmp/GL3-new.java \
 $dircmp/GL3bc-new.java \
 $dircmp/GL4ES3-new.java \
 $dircmp/GLES3-new.java \
 $dircmp/GL4-new.java \
 $dircmp/GL4bc-new.java \
 $dircmp/GL-new.java"

GL4FILES="$dircmp/GL2ES2-new.java \
 $dircmp/GL2ES3-new.java \
 $dircmp/GL3ES3-new.java \
 $dircmp/GL3-new.java \
 $dircmp/GL4ES3-new.java \
 $dircmp/GL4-new.java \
 $dircmp/GL-new.java"

GLES3FILES="$dircmp/GL2ES2-new.java \
 $dircmp/GL2ES3-new.java \
 $dircmp/GL3ES3-new.java \
 $dircmp/GL4ES3-new.java \
 $dircmp/GLES3-new.java \
 $dircmp/GL-new.java"

GLES1FILES="$dircmp/GL2ES1-new.java \
 $dircmp/GLES1-new.java \
 $dircmp/GL-new.java"

GLES2FILES="$dircmp/GL2ES2-new.java \
 $dircmp/GLES2-new.java \
 $dircmp/GL-new.java"

GL2ES2FILES="$dircmp/GL2ES2-new.java \
 $dircmp/GLES2-new.java \
 $dircmp/GL2-new.java \
 $dircmp/GL-new.java"

GL3ES3FILES="$dircmp/GL2ES2-new.java \
 $dircmp/GL3ES3-new.java \
 $dircmp/GL4ES3-new.java \
 $dircmp/GLES3-new.java \
 $dircmp/GL3-new.java \
 $dircmp/GL4-new.java \
 $dircmp/GL-new.java"

echo Duplicates GL GL2ES1 GL2ES2 GL2GL3 GL3 GL3bc GL4 GL4bc > $dircmp/GL4Files.dups
cat $GL4FILES | sort | uniq -d >> $dircmp/GL4Files.dups

echo Duplicates GL GL2ES1 GLES1 > $dircmp/GLES1Files.dups
cat $GLES1FILES | sort | uniq -d >> $dircmp/GLES1Files.dups

echo Duplicates GL GL2ES2 GLES2 > $dircmp/GLES2Files.dups
cat $GLES2FILES | sort | uniq -d >> $dircmp/GLES2Files.dups

echo Duplicates GL GL2ES2 GL3ES3 GLES3 > $dircmp/GLES3Files.dups
cat $GLES3FILES | sort | uniq -d >> $dircmp/GLES3Files.dups

echo Duplicates GL GL2 GL2ES2 GLES2 > $dircmp/GL2ES2Files.dups
cat $GL2ES2FILES | sort | uniq -d >> $dircmp/GL2ES2Files.dups

echo Duplicates GL GL3 GL2ES2 GL2ES3 GLES3 > $dircmp/GL3ES3Files.dups
cat $GL3ES3FILES | sort | uniq -d >> $dircmp/GL3ES3Files.dups

##
##

echo Duplicates GL3ES3 GLES3 > $dircmp/GLES3-GL3ES3.dups
cat $dircmp/GLES3-new.java $dircmp/GL3ES3-new.java | sort | uniq -d >> $dircmp/GLES3-GL3ES3.dups

echo Diff GL3ES3 GLES3 > $dircmp/GLES3-GL3ES3.diff
diff -Nurdw $dircmp/GLES3-new.java $dircmp/GL3ES3-new.java >> $dircmp/GLES3-GL3ES3.diff

##
##

echo Duplicates GL2GL3 GLES3 > $dircmp/GLES3-GL2GL3.dups
cat $dircmp/GLES3-new.java $dircmp/GL2GL3-new.java | sort | uniq -d >> $dircmp/GLES3-GL2GL3.dups

echo Diff GL2GL3 GLES3 > $dircmp/GLES3-GL2GL3.diff
diff -Nurdw $dircmp/GLES3-new.java $dircmp/GL2GL3-new.java >> $dircmp/GLES3-GL2GL3.diff

##
##

echo Duplicates GL2ES2 GLES3 > $dircmp/GLES3-GL2ES2.dups
cat $dircmp/GLES3-new.java $dircmp/GL2ES2-new.java | sort | uniq -d >> $dircmp/GLES3-GL2ES2.dups

echo Diff GL2ES2 GLES3 > $dircmp/GLES3-GL2ES2.diff
diff -Nurdw $dircmp/GLES3-new.java $dircmp/GL2ES2-new.java >> $dircmp/GLES3-GL2ES2.diff

##
##

echo Duplicates GL2GL3 GL3ES3 > $dircmp/GL3ES3-GL2GL3.dups
cat $dircmp/GL3ES3-new.java $dircmp/GL2GL3-new.java | sort | uniq -d >> $dircmp/GL3ES3-GL2GL3.dups

echo Diff GL2GL3 GL3ES3 > $dircmp/GL3ES3-GL2GL3.diff
diff -Nurdw $dircmp/GL3ES3-new.java $dircmp/GL2GL3-new.java >> $dircmp/GL3ES3-GL2GL3.diff

##
##

echo Duplicates GL2ES2 GL3ES3 > $dircmp/GL3ES3-GL2ES2.dups
cat $dircmp/GL3ES3-new.java $dircmp/GL2ES2-new.java | sort | uniq -d >> $dircmp/GL3ES3-GL2ES2.dups

echo Diff GL2ES2 GL3ES3 > $dircmp/GL3ES3-GL2ES2.diff
diff -Nurdw $dircmp/GL3ES3-new.java $dircmp/GL2ES2-new.java >> $dircmp/GL3ES3-GL2ES2.diff

##
##