From bae946382facd3561a32ace3ff15ee35e31549d7 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 25 Jun 2020 20:37:11 +0000 Subject: more improvements to temp file generation git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3868 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/hpcdtoppm/pcdovtoppm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'converter') diff --git a/converter/ppm/hpcdtoppm/pcdovtoppm b/converter/ppm/hpcdtoppm/pcdovtoppm index eeae73af..715734bd 100755 --- a/converter/ppm/hpcdtoppm/pcdovtoppm +++ b/converter/ppm/hpcdtoppm/pcdovtoppm @@ -112,7 +112,7 @@ if [ $# = 0 ]; then usage fi -tempdir=$(mktemp -d "${TMPDIR:-/tmp}/anytopnm.XXXXXXXX") || +tempdir=$(mktemp -d "${TMPDIR:-/tmp}/pcdovtoppm.XXXXXXXX") || ( echo "Could not create temporary file. Exiting." 1>&2; exit 1; ) trap 'rm -rf $tempdir' 0 @@ -149,7 +149,7 @@ do fi fi fi - imagefile=${tempdir}/pi.${row}.${col}.$$ + imagefile=${tempdir}/pi.${row}.${col} rm -f $imagefile ttext="$i:t" @@ -167,7 +167,7 @@ do imagefiles="$imagefiles $imagefile" if [ $col -ge $across -o $width -gt $maxwidth ] ; then - rowfile=${tempdir}/pi.${row}.$$ + rowfile=${tempdir}/pi.${row} rm -f $rowfile if [ "$colors" = "n" ] ; then pnmcat $back -lr -jbottom $imagefiles > $rowfile @@ -187,7 +187,7 @@ do done if [ ${#imagefiles[*]} -gt 0 ] ; then - rowfile=${tempdir}/pi.${row}.$$ + rowfile=${tempdir}/pi.${row} rm -f $rowfile if [ "$colors" = "n" ] ; then pnmcat $back -lr -jbottom $imagefiles > $rowfile -- cgit 1.4.1