X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2Finject-xpdf.pl;h=0e08c53ea57b556883e1f2c1248878947f1a792c;hb=b0d6b177b15ec7aff4c132353366b946aa382a89;hp=045e99097934ab786c61af6dd59496a62246b621;hpb=8a8b565fc2afe928ac84943079b3500ff5667ba9;p=swftools.git diff --git a/lib/pdf/inject-xpdf.pl b/lib/pdf/inject-xpdf.pl index 045e990..0e08c53 100755 --- a/lib/pdf/inject-xpdf.pl +++ b/lib/pdf/inject-xpdf.pl @@ -15,7 +15,12 @@ system("tar -zxvf ../../$filename") and die; system("find -type f -exec mv {} .. \\;") and die; chdir(".."); system("find -type d -exec rmdir {} \\; 2> /dev/null"); -system("patch --verbose < ../xpdf-changes.patch") and die; + +$c = 'find . \( -name "*.cc" -or -name "*.h" -or -name "*.c" \) -exec cp {} {}.orig \;'; +print "$c\n"; +system($c); + +system("patch < ../xpdf-changes.patch 2>&1 | grep failed"); chdir(".."); system("rm -f xpdf"); system("ln -s $directory xpdf"); @@ -25,13 +30,12 @@ open(fi, ">switch"); print fi <