-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path03-diff-jodel.sh
executable file
·26 lines (19 loc) · 1.18 KB
/
03-diff-jodel.sh
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
(
folders=($(ls -vdr */ | grep -Po "jodel-.+(?=/)"))
newj=${folders[0]}
oldj=${folders[1]}
echo $newj
colordiff -Nrs -C 2 <(tree "$oldj/jd/com/jodelapp/jodelandroidv3/") <(tree "$newj/jd/com/jodelapp/jodelandroidv3/")
colordiff -Nrs -C 2 <(tree "$oldj/apktool/res") <(tree "$newj/apktool/res")
echo "*** DIFF JodelApi.java ************************************"
colordiff -Nrs -C 3 "$oldj/jd/com/jodelapp/jodelandroidv3/api/JodelApi.java" "$newj/jd/com/jodelapp/jodelandroidv3/api/JodelApi.java"
echo "*** DIFF /api/model ************************************"
colordiff -Nr -C 3 "$oldj/jd/com/jodelapp/jodelandroidv3/api/model" "$newj/jd/com/jodelapp/jodelandroidv3/api/model"
echo "*** DIFF /model ************************************"
colordiff -Nr -C 3 "$oldj/jd/com/jodelapp/jodelandroidv3/model" "$newj/jd/com/jodelapp/jodelandroidv3/model"
echo "*** DIFF /events ************************************"
colordiff -Nr -C 3 "$oldj/jd/com/jodelapp/jodelandroidv3/events" "$newj/jd/com/jodelapp/jodelandroidv3/events"
echo "*** DIFF /values ************************************"
colordiff -Nr -C 3 "$oldj/apktool/res/values" "$newj/apktool/res/values" --exclude "public.xml"
) | less -R
exit $PIPESTATUS