Accepting request 116637 from home:a_jaeger:branches:build-compare-test

Handle /ID in pdf files.

OBS-URL: https://build.opensuse.org/request/show/116637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=131
This commit is contained in:
Andreas Jaeger 2012-05-07 11:33:30 +00:00 committed by Git OBS Bridge
parent 9cc4aa0d64
commit 1331f5c886
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 7 11:30:28 UTC 2012 - aj@suse.de
- Handle /ID in pdf files (bnc#760867).
-------------------------------------------------------------------
Wed Apr 4 18:25:48 UTC 2012 - reddwarf@opensuse.org

View File

@ -1,6 +1,6 @@
#! /bin/bash
#
# Copyright (c) 2009, 2010, 2011 SUSE Linux Product GmbH, Germany.
# Copyright (c) 2009, 2010, 2011, 2012 SUSE Linux Product GmbH, Germany.
# Licensed under GPL v2, see COPYING file for details.
#
# Written by Michael Matz and Stephan Coolo
@ -402,6 +402,14 @@ check_single_file()
echo "Ignore $file"
return 0
;;
*pdf)
# PDF files contain a unique ID, remove it
# Format of the ID is:
# /ID [<9ACE247A70CF9BEAFEE15E116259BD6D> <9ACE247A70CF9BEAFEE15E116259BD6D>]
for f in old/$file new/$file; do
sed -i -e 's/ID \[ \?<.*> <.*> \?\]/IDrandom/g' $f
done
;;
esac
ftype=`/usr/bin/file old/$file | cut -d: -f2-`