forked from pool/build-compare
- Handle timestamp in dvi files
- Handle Last-modified HTML META tag - Handle yet another variant of javadoc timestamps OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=199
This commit is contained in:
parent
91978818bd
commit
28e7830dca
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 3 12:44:04 UTC 2016 - olaf@aepfle.de
|
||||
|
||||
- Handle timestamp in dvi files
|
||||
- Handle Last-modified HTML META tag
|
||||
- Handle yet another variant of javadoc timestamps
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 1 10:11:14 UTC 2016 - schwab@suse.de
|
||||
|
||||
|
@ -21,7 +21,7 @@ Summary: Build Result Compare Script
|
||||
License: GPL-2.0+
|
||||
Group: Development/Tools/Building
|
||||
Url: https://github.com/openSUSE/build-compare
|
||||
Version: 20160104T085658.0b929c8
|
||||
Version: 20160303T140910.a3e5233
|
||||
Release: 0
|
||||
Source1: COPYING
|
||||
Source2: same-build-result.sh
|
||||
|
29
pkg-diff.sh
29
pkg-diff.sh
@ -440,6 +440,31 @@ check_single_file()
|
||||
perl -e "open fh, '+<', 'old/$file'; seek fh, 4, SEEK_SET; print fh '0000';"
|
||||
perl -e "open fh, '+<', 'new/$file'; seek fh, 4, SEEK_SET; print fh '0000';"
|
||||
;;
|
||||
*.dvi)
|
||||
# Opcodes 247: pre; i[1], num[4], den[4], mag[4], k[1], x[k]
|
||||
perl -e "
|
||||
my \$rec;
|
||||
open fh, '+<', 'old/$file';
|
||||
my \$dummy = read fh, \$rec, 15;
|
||||
(\$pre, \$i, \$num, \$den, \$mag, \$k) = unpack('C2 N3 C', \$rec);
|
||||
seek fh, 15, SEEK_SET;
|
||||
while (\$k > 0) {
|
||||
print fh '0';
|
||||
\$k--;
|
||||
}
|
||||
"
|
||||
perl -e "
|
||||
my \$rec;
|
||||
open fh, '+<', 'new/$file';
|
||||
my \$dummy = read fh, \$rec, 15;
|
||||
(\$pre, \$i, \$num, \$den, \$mag, \$k) = unpack('C2 N3 C', \$rec);
|
||||
seek fh, 15, SEEK_SET;
|
||||
while (\$k > 0) {
|
||||
print fh '0';
|
||||
\$k--;
|
||||
}
|
||||
"
|
||||
;;
|
||||
*.bz2)
|
||||
bunzip2 -c old/$file > old/${file/.bz2/}
|
||||
bunzip2 -c new/$file > new/${file/.bz2/}
|
||||
@ -480,6 +505,7 @@ check_single_file()
|
||||
/usr/share/doc/kde/HTML/*/*/*.html)
|
||||
for f in old/$file new/$file; do
|
||||
sed -i -e '
|
||||
s|META NAME="Last-modified" CONTENT="[^"]\+"|META NAME="Last-modified" CONTENT="Thu Mar 3 10:32:44 2016"|
|
||||
s|<!-- Created on [^,]\+, [0-9]\+ [0-9]\+ by texi2html [0-9\.]\+ -->|<!-- Created on July, 14 2015 by texi2html 1.78 -->|
|
||||
s|<!-- Created on [^,]\+, [0-9]\+ by texi2html [0-9\.]\+$|<!-- Created on October 1, 2015 by texi2html 5.0|
|
||||
s|^<!-- Created on .*, 20.. by texi2html .\...|<!-- Created on August 7, 2009 by texi2html 1.82|
|
||||
@ -501,6 +527,7 @@ check_single_file()
|
||||
# <head>
|
||||
# <!-- Generated by javadoc (version 1.7.0_75) on Tue Feb 03 02:20:12 GMT 2015 -->
|
||||
# <!-- Generated by javadoc on Tue Feb 03 00:02:48 GMT 2015 -->
|
||||
# <!-- Generated by javadoc (1.8.0_72) on Thu Mar 03 12:50:28 GMT 2016 -->
|
||||
# <meta name="date" content="2015-02-03">
|
||||
# </head>
|
||||
sed -i -e '
|
||||
@ -510,6 +537,8 @@ check_single_file()
|
||||
/^<\/head>/{
|
||||
b end_head
|
||||
}
|
||||
s/^<!-- Generated by javadoc ([0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) .... -->/<!-- Generated by javadoX (1.8.0_72) on Thu Mar 03 12:50:28 GMT 2016 -->/
|
||||
t next
|
||||
s/^\(<!-- Generated by javadoc\) \((\(build\|version\) [0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \5/
|
||||
t next
|
||||
s/^\(<!-- Generated by javadoc\) \(on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \3/
|
||||
|
Loading…
Reference in New Issue
Block a user