forked from pool/build-compare
Accepting request 34181 from home:a_jaeger:branches:openSUSE:Factory
Copy from home:a_jaeger:branches:openSUSE:Factory/build-compare via accept of submit request 34181 revision 45. Request was accepted with message: Reviewed ok OBS-URL: https://build.opensuse.org/request/show/34181 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=51
This commit is contained in:
parent
8bbb3344fc
commit
3f48581996
@ -3,11 +3,6 @@ Fri Mar 5 09:46:01 UTC 2010 - aj@suse.de
|
|||||||
|
|
||||||
- Handle more man files.
|
- Handle more man files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Dec 25 09:03:44 UTC 2009 - aj@suse.de
|
|
||||||
|
|
||||||
- Handle Mono files.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Dec 13 12:59:16 UTC 2009 - aj@suse.de
|
Sun Dec 13 12:59:16 UTC 2009 - aj@suse.de
|
||||||
|
|
||||||
|
31
rpm-check.sh
31
rpm-check.sh
@ -238,14 +238,14 @@ check_single_file()
|
|||||||
sed -i -e "s,Release:.*$release1,Release: @RELEASE@," old/$file
|
sed -i -e "s,Release:.*$release1,Release: @RELEASE@," old/$file
|
||||||
sed -i -e "s,Release:.*$release2,Release: @RELEASE@," new/$file
|
sed -i -e "s,Release:.*$release2,Release: @RELEASE@," new/$file
|
||||||
;;
|
;;
|
||||||
# *.dll|*.exe)
|
*.dll|*.exe)
|
||||||
# # we can't handle it well enough
|
# we can't handle it well enough
|
||||||
# if ! cmp -s old/$file new/$file; then
|
if ! cmp -s old/$file new/$file; then
|
||||||
# echo "mono $file differs"
|
echo "mono $file differs"
|
||||||
# return 1
|
return 1
|
||||||
# fi
|
fi
|
||||||
# return 0
|
return 0
|
||||||
# ;;
|
;;
|
||||||
*.a)
|
*.a)
|
||||||
echo "$file is .a"
|
echo "$file is .a"
|
||||||
flist=`ar t new/$file`
|
flist=`ar t new/$file`
|
||||||
@ -415,21 +415,6 @@ check_single_file()
|
|||||||
|
|
||||||
ftype=`/usr/bin/file old/$file | cut -d: -f2-`
|
ftype=`/usr/bin/file old/$file | cut -d: -f2-`
|
||||||
case $ftype in
|
case $ftype in
|
||||||
(*PE32\ executable\ for\ MS\ Windows\ *\ Mono/.Net\ assembly*)
|
|
||||||
echo "PE32 Mono/.Net assembly: $file"
|
|
||||||
if [ -x /usr/bin/monodis ] ; then
|
|
||||||
monodis --output=${file1} old/$file
|
|
||||||
monodis --output=${file2} new/$file
|
|
||||||
if ! cmp -s ${file1} ${file2}; then
|
|
||||||
echo "$file differs ($ftype)"
|
|
||||||
diff -u ${file1} ${file2}
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "cannot compare, no monodis installed"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*executable*|*LSB\ shared\ object*)
|
*executable*|*LSB\ shared\ object*)
|
||||||
objdump -d --no-show-raw-insn old/$file | filter_disasm > $file1
|
objdump -d --no-show-raw-insn old/$file | filter_disasm > $file1
|
||||||
if ! test -s $file1; then
|
if ! test -s $file1; then
|
||||||
|
Loading…
Reference in New Issue
Block a user