forked from pool/build-compare
Accepting request 116654 from home:a_jaeger:branches:build-compare-test
Improve pdf handling OBS-URL: https://build.opensuse.org/request/show/116654 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=132
This commit is contained in:
parent
1331f5c886
commit
59605d3229
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 7 14:50:43 UTC 2012 - aj@suse.de
|
||||
|
||||
- Further handling of pdf files (bnc#760867).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 7 11:30:28 UTC 2012 - aj@suse.de
|
||||
|
||||
|
@ -406,8 +406,13 @@ check_single_file()
|
||||
# PDF files contain a unique ID, remove it
|
||||
# Format of the ID is:
|
||||
# /ID [<9ACE247A70CF9BEAFEE15E116259BD6D> <9ACE247A70CF9BEAFEE15E116259BD6D>]
|
||||
# pdftex creates also:
|
||||
# /CreationDate (D:20120103083206Z)
|
||||
# /ModDate (D:20120103083206Z)
|
||||
for f in old/$file new/$file; do
|
||||
sed -i -e 's/ID \[ \?<.*> <.*> \?\]/IDrandom/g' $f
|
||||
sed -i -e 's%/ID \?\[ \?<[^>]\+> <[^>]\+> \?\]%/IDrandom%g' $f
|
||||
sed -i -e 's%/CreationDate (D:.*)%/CreationDate (D: XXX)%g' $f
|
||||
sed -i -e 's%/ModDate (D:.*)%/ModDate (D: XXX)%g' $f
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user