1
0
forked from pool/build-compare

Accepting request 34179 from home:a_jaeger:branches:openSUSE:Factory

Copy from home:a_jaeger:branches:openSUSE:Factory/build-compare via accept of submit request 34179 revision 42.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/34179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=50
This commit is contained in:
Andreas Jaeger 2010-03-05 17:23:23 +00:00 committed by Git OBS Bridge
parent 1c1083c7a2
commit 8bbb3344fc
2 changed files with 41 additions and 8 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Mar 5 09:46:01 UTC 2010 - aj@suse.de
- 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

View File

@ -238,14 +238,14 @@ check_single_file()
sed -i -e "s,Release:.*$release1,Release: @RELEASE@," old/$file
sed -i -e "s,Release:.*$release2,Release: @RELEASE@," new/$file
;;
*.dll|*.exe)
# we can't handle it well enough
if ! cmp -s old/$file new/$file; then
echo "mono $file differs"
return 1
fi
return 0
;;
# *.dll|*.exe)
# # we can't handle it well enough
# if ! cmp -s old/$file new/$file; then
# echo "mono $file differs"
# return 1
# fi
# return 0
# ;;
*.a)
echo "$file is .a"
flist=`ar t new/$file`
@ -376,6 +376,14 @@ check_single_file()
sed -i -e 's| 3 "20..-..-.." "perl v5....." "User Contributed Perl Documentation"$| 3 "2009-01-01" "perl v5.10.0" "User Contributed Perl Documentation"|' $f
done
;;
/usr/share/man/man*/*)
# Handles lines like:
# .TH debhelper 7 "2010-02-27" "7.4.15" "Debhelper"
# .TH DIRMNGR-CLIENT 1 2010-02-27 "Dirmngr 1.0.3" "GNU Privacy Guard"
for f in old/$file new/$file; do
sed -i -e 's|^\.TH \(.*\) . 20..-..-.. |.TH . 2000-01-01 |' $f
done
;;
*.elc)
# emacs lisp files
for f in old/$file new/$file; do
@ -407,6 +415,21 @@ check_single_file()
ftype=`/usr/bin/file old/$file | cut -d: -f2-`
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*)
objdump -d --no-show-raw-insn old/$file | filter_disasm > $file1
if ! test -s $file1; then