summaryrefslogtreecommitdiffstats
path: root/scripts/compare-jars.sh
blob: 9a541319bc18f842361c4a9a5ca5cbe4445763f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

old=$1
new=$2

for file in `cd $old ; ls *.jar`
do
    echo ===== $file =====
    jar tf $old/$file | sort > $old/$file.old
    jar tf $new/$file | sort > $old/$file.new
    diff $old/$file.old $old/$file.new | tee $old/$file.diff
done