summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/jar-compare.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/jar-compare.sh b/scripts/jar-compare.sh
index 9a54131..a9cacdb 100755
--- a/scripts/jar-compare.sh
+++ b/scripts/jar-compare.sh
@@ -2,11 +2,12 @@
old=$1
new=$2
+tmp=$3
-for file in `cd $old ; ls *.jar`
+for file in `cd $old ; ls`
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
+ 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