summaryrefslogtreecommitdiffstats
path: root/scripts/jar-compare.sh
blob: bc3ea9fd000a0d4ec409519f80b6face325b291e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

file=$1
old=$2
new=$3

echo "#### Comparing $file..."
jar tvf $old/$file | awk '{print $8;}' | grep -v "/$" | sort > /tmp/$file.old
jar tvf $new/$file | awk '{print $8;}' | grep -v "/$" | sort > /tmp/$file.new

# cat /tmp/$file.old
# echo "====="
# cat /tmp/$file.new
# echo "====="

diff /tmp/$file.old /tmp/$file.new