Răsfoiți Sursa

only run qpdf for the main output.pdf file

was previously matching any pdf file, which caused it to run for
embedded pdf figures produced during the mklatex run
Brian Gough 11 ani în urmă
părinte
comite
56f1ffa067
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      services/clsi/app/coffee/OutputFileOptimiser.coffee

+ 1 - 1
services/clsi/app/coffee/OutputFileOptimiser.coffee

@@ -9,7 +9,7 @@ module.exports = OutputFileOptimiser =
 	optimiseFile: (src, dst, callback = (error) ->) ->
 	optimiseFile: (src, dst, callback = (error) ->) ->
 		# check output file (src) and see if we can optimise it, storing
 		# check output file (src) and see if we can optimise it, storing
 		# the result in the build directory (dst)
 		# the result in the build directory (dst)
-		if src.match(/\.pdf$/)
+		if src.match(/\/output\.pdf$/)
 			OutputFileOptimiser.optimisePDF src, dst, callback
 			OutputFileOptimiser.optimisePDF src, dst, callback
 		else
 		else
 			callback (null)
 			callback (null)