[Returnanalytics-commits] r3201 - pkg/PortfolioAnalytics/sandbox/symposium2013/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Oct 3 16:28:16 CEST 2013


Author: peter_carl
Date: 2013-10-03 16:28:16 +0200 (Thu, 03 Oct 2013)
New Revision: 3201

Modified:
   pkg/PortfolioAnalytics/sandbox/symposium2013/src/pdf2png.sh
Log:
- small modifications to output


Modified: pkg/PortfolioAnalytics/sandbox/symposium2013/src/pdf2png.sh
===================================================================
--- pkg/PortfolioAnalytics/sandbox/symposium2013/src/pdf2png.sh	2013-10-03 14:19:32 UTC (rev 3200)
+++ pkg/PortfolioAnalytics/sandbox/symposium2013/src/pdf2png.sh	2013-10-03 14:28:16 UTC (rev 3201)
@@ -7,15 +7,16 @@
   inputdir=$1
   destdir=$2
 fi
+cd $inputdir
 n=0;
 echo " ";
 echo "Converting:"
 echo " ";
-for file in $inputdir/*.pdf
+for file in *.pdf
   do 
     pngfile=${file%%.pdf}.png
-    echo "$((++n)): $file to $destdir/$pngfile."
+    echo "$((++n)): $file to $destdir/$pngfile"
     convert -density 300 $file -quality 100 -sharpen 0x1.0 $destdir/$pngfile 
-    echo " ";
-    echo "$((n)) files were converted from PDF to PNG format."
-done 
\ No newline at end of file
+done
+echo " ";
+echo "$((n)) files were converted from PDF to PNG format."



More information about the Returnanalytics-commits mailing list