X-Git-Url: https://git.sthu.org/?p=pgp-tools.git;a=blobdiff_plain;f=gpgsigs%2Fgpgsigs;h=cc7bad0aa404d66c08192004f914f12a51e8a413;hp=5ba8c126792afc10486632b237f86bacf5d05b75;hb=fba02ab5cef2bfceaf97ee19d81af866854d54be;hpb=b8faf2bc7b76f47e6cc494c81c0225ff1c4e8527 diff --git a/gpgsigs/gpgsigs b/gpgsigs/gpgsigs index 5ba8c12..cc7bad0 100755 --- a/gpgsigs/gpgsigs +++ b/gpgsigs/gpgsigs @@ -181,7 +181,7 @@ while () { next if $uidstatus eq "r"; if ($latex and not $photocount) { # call once per key my ($shortkey) = substr $key, -8; - system "rm $shortkey.[1-9]*.eps"; + system "rm -f $shortkey.[1-9]*.eps"; system "gpg --photo-viewer 'gpgsigs-eps-helper $shortkey' --list-options show-photos --list-key $key > /dev/null"; $photocount = 1; } @@ -307,6 +307,7 @@ if ($latex) { \usepackage[margin=2cm]{geometry} \usepackage{alltt} \usepackage{graphicx} +\usepackage{grffile} \begin{document} \begin{alltt} EOF @@ -354,7 +355,7 @@ while () { if ($latex and ($uid =~ /^\[jpeg image/)) { $photocount++; print WRITE "\\begin{flushright}\n"; - print WRITE "\\includegraphics[height=3cm]{$key.$photocount.eps}\n"; + print WRITE "\\includegraphics[height=3cm]{$key.$photocount}\n"; print WRITE "\\end{flushright}\n"; } }