summaryrefslogtreecommitdiffstats
path: root/scripts/jar-compare.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-23 14:23:11 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-23 14:23:11 -0500
commitba90fbd8fb727f1131986738c1d8a597f55631d8 (patch)
tree6dc94f6f9e4491adccfc6a0312d7bf9ed77db228 /scripts/jar-compare.sh
parent91e9025c3b9637ee04252266ba13c6b4828f4804 (diff)
downloadpki-dev-ba90fbd8fb727f1131986738c1d8a597f55631d8.tar.gz
pki-dev-ba90fbd8fb727f1131986738c1d8a597f55631d8.tar.xz
pki-dev-ba90fbd8fb727f1131986738c1d8a597f55631d8.zip
Updated JAR comparison script.
Diffstat (limited to 'scripts/jar-compare.sh')
-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