Accepting request 46548 from openSUSE:Tools
Copy from openSUSE:Tools/build-compare based on submit request 46548 from user a_jaeger OBS-URL: https://build.opensuse.org/request/show/46548 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/build-compare?expand=0&rev=35
This commit is contained in:
commit
b1aad59493
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 08:59:22 UTC 2010 - aj@suse.de
|
||||
|
||||
- Handle png files with timestamp if convert is installed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 06:50:13 UTC 2010 - aj@suse.de
|
||||
|
||||
- Handle one more doxygen variation.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 23 12:19:56 UTC 2010 - aj@suse.de
|
||||
|
||||
|
@ -24,7 +24,7 @@ Group: Development/Tools/Building
|
||||
AutoReqProv: on
|
||||
Summary: Build Result Compare Script
|
||||
Version: 2009.10.14
|
||||
Release: 14
|
||||
Release: 19
|
||||
Source: same-build-result.sh
|
||||
Source1: rpm-check.sh
|
||||
Source2: COPYING
|
||||
|
17
rpm-check.sh
17
rpm-check.sh
@ -327,6 +327,21 @@ check_single_file()
|
||||
check_single_file ${file/.gz/}
|
||||
return $?
|
||||
;;
|
||||
*png)
|
||||
# Try to remove timestamps, only if convert from ImageMagick is installed
|
||||
if [[ $(type -p convert) ]]; then
|
||||
convert old/$file +set date:create +set date:modify old/${file/.png/_n.png}
|
||||
convert old/$file +set date:create +set date:modify new/${file/.png/_n.png}
|
||||
if ! cmp -s old/${file/.png/_n.png} new/${file/.png/_n.png}; then
|
||||
echo "$file differs ($ftype)"
|
||||
hexdump -C old/${file/.png/_n.png} > $file1
|
||||
hexdump -C new/${file/.png/_n.png} > $file2
|
||||
diff -u $file1 $file2 | head -n 20
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
;;
|
||||
/usr/share/locale/*/LC_MESSAGES/*.mo|/usr/share/locale-bundle/*/LC_MESSAGES/*.mo)
|
||||
for f in old/$file new/$file; do
|
||||
sed -i -e "s,POT-Creation-Date: ....-..-.. ..:..+....,POT-Creation-Date: 1970-01-01 00:00+0000," $f
|
||||
@ -339,6 +354,8 @@ check_single_file()
|
||||
sed -i -e 's|^ *This document was generated by <em>Autobuild</em> on <em>.*, 20..</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html .\...</em></a>.$| This document was generated by <em>Autobuild</em> on <em>August 7, 2009</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.|' $f
|
||||
# doxygen docu, e.g. in libssh and log4c
|
||||
sed -i -e 's|Generated on ... ... [0-9]* [0-9]*:[0-9][0-9]:[0-9][0-9] 20[0-9][0-9] for |Generated on Mon May 10 20:45:00 2010 for |' $f
|
||||
# Generated on Sat Aug 14 2010 16:49:48 for libssh
|
||||
sed -i -e 's|Generated on ... ... [0-9]* 20[0-9][0-9] [0-9]*:[0-9][0-9]:[0-9][0-9] for |Generated on Mon May 10 20:45:00 2010 for |' $f
|
||||
done
|
||||
;;
|
||||
/usr/share/javadoc/*.html |\
|
||||
|
Loading…
Reference in New Issue
Block a user