Author: bugman Date: Fri Sep 15 06:58:28 2006 New Revision: 2564 URL: http://svn.gna.org/viewcvs/relax?rev=2564&view=rev Log: Modified the LaTeX manual compilation section of the sconstruct script so that scons does not fail when the PS or PDF files are missing. Modified: 1.2/sconstruct Modified: 1.2/sconstruct URL: http://svn.gna.org/viewcvs/relax/1.2/sconstruct?rev=2564&r1=2563&r2=2564&view=diff ============================================================================== --- 1.2/sconstruct (original) +++ 1.2/sconstruct Fri Sep 15 06:58:28 2006 @@ -787,8 +787,10 @@ system('ps2pdf -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -dColorImageFilter=/FlateEncode -dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode -dMonoImageFilter=/FlateEncode -dPDFSETTINGS=/prepress relax.ps') print "\n\n\n <<< Removing the PS file and shifting the PDF down a directory >>>\n\n\n" - remove('relax.ps') - move('relax.pdf', '..') + if access('relax.ps', F_OK): + remove('relax.ps') + if access('relax.pdf', F_OK): + move('relax.pdf', '..') # Return to the base directory. chdir(base_dir)