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

old=$1
new=$2
tmp=$3

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