diff options
Diffstat (limited to 'scripts/jar-compare.sh')
-rwxr-xr-x | scripts/jar-compare.sh | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/scripts/jar-compare.sh b/scripts/jar-compare.sh index a9cacdb..bc3ea9f 100755 --- a/scripts/jar-compare.sh +++ b/scripts/jar-compare.sh @@ -1,13 +1,16 @@ #!/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 +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 |