diff --git a/build-compare.changes b/build-compare.changes index 393d880..ee347af 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Wed Sep 22 13:24:19 UTC 2010 - coolo@novell.com - -- ignore texlive's fmt files as discussed with werner - ------------------------------------------------------------------- Mon Sep 20 19:24:10 UTC 2010 - aj@suse.de diff --git a/rpm-check.sh b/rpm-check.sh index c83ae04..52bb489 100644 --- a/rpm-check.sh +++ b/rpm-check.sh @@ -279,7 +279,8 @@ check_single_file() # deprecated-list is randomly ordered, sort it for comparison case $f in */deprecated-list.html) - sort -o $f $f + sort $f > ${f}.sort + mv ${f}.sort $f ;; esac done @@ -293,7 +294,8 @@ check_single_file() */fonts.scale|*/fonts.dir|*/encodings.dir) for f in old/$file new/$file; do # sort files before comparing - sort -o $f $f + sort $f > $f.tmp + mv $f.tmp $f done ;; /var/adm/perl-modules/*) @@ -333,9 +335,20 @@ check_single_file() done ;; /var/lib/texmf/web2c/*/*fmt) - # binary dump of latex formats, we can ignore them for good - echo "difference in $file ignored." - return 0 + # same of these are gzip compressed + for f in old/$file new/$file; do + fftype=`/usr/bin/file $f | cut -d: -f2-` + case $fftype in + *gzip\ compressed\ data*) + gunzip -cd $f > $f.tmp + mv $f.tmp $f + ;; + *) + ;; + esac + # date is of variable length, e.g. 2009.7.21 + sed -i -e 's|(format=[a-z]*tex 20..\.[0-9]*\.[0-9]*)|(format=luatex 2009.1.1)|' $f + done ;; */libtool) for f in old/$file new/$file; do