forked from pool/build-compare
- Remove more javadoc references (bnc#916161)
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=167
This commit is contained in:
parent
cd9b71cb67
commit
c2901887b4
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 4 17:57:27 UTC 2015 - olaf@aepfle.de
|
||||
|
||||
- Remove more javadoc references (bnc#916161)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 4 15:53:05 UTC 2015 - olaf@aepfle.de
|
||||
|
||||
|
18
rpm-check.sh
18
rpm-check.sh
@ -427,7 +427,22 @@ check_single_file()
|
||||
# There are more timestamps in html, so far we handle only some primitive versions.
|
||||
for f in old/$file new/$file; do
|
||||
# Javadoc:
|
||||
sed -i -e "s,^<!-- Generated by javadoc (build [0-9._]*) on ... ... .. ..:..:.. UTC .... -->,^<!-- Generated by javadoc (build 1.6.0_0) on Sun Jul 01 00:00:00 UTC 2000 -->," $f
|
||||
# <head>
|
||||
# <!-- Generated by javadoc (version 1.7.0_75) on Tue Feb 03 02:20:12 GMT 2015 -->
|
||||
# </head>
|
||||
sed -i -e '
|
||||
/^<head>/{
|
||||
: next
|
||||
n
|
||||
/^<\/head>/{
|
||||
b end_head
|
||||
}
|
||||
s/^\(<!-- Generated by javadoc\) \((\(build\|version\) [0-9._]\+) on ... ... .. ..:..:.. \(GMT\|UTC\) ....\) \(-->\)/\1 some-date-removed-by-build-compare \5/
|
||||
s/^<meta name="date" content="[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}">/<meta name="date" content="some-date-removed-by-build-compare">/
|
||||
b next
|
||||
}
|
||||
: end_head
|
||||
' $f
|
||||
sed -i -e 's|^<!-- Generated by javadoc on ... ... .. ..:..:.. UTC ....-->$|<!-- Generated by javadoc on Sun Jul 01 00:00:00 UTC 2000-->|' $f
|
||||
sed -i -e 's|<META NAME="date" CONTENT="20..-..-..">|<META NAME="date" CONTENT="1970-01-01">|' $f
|
||||
# Gjdoc HtmlDoclet:
|
||||
@ -718,3 +733,4 @@ if test "$ret" = 0; then
|
||||
echo "RPM content is identical"
|
||||
fi
|
||||
exit $ret
|
||||
# vim: tw=666 ts=2 et
|
||||
|
Loading…
Reference in New Issue
Block a user