Changeset 736

Show
Ignore:
Timestamp:
02/15/11 19:28:59 (15 months ago)
Author:
mgalloy
Message:

Changing copying of resources/ directory to not delete old idldoc-resources/ if it already exists.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/doc_system__define.pro

    r735 r736  
    11561156  resourceDestination = filepath('', subdir=['idldoc-resources'], $ 
    11571157                                 root=self.output) 
    1158                                   
    1159   file_delete, resourceDestination, /recursive, /allow_nonexistent 
    1160   file_mkdir, resourceDestination 
     1158 
     1159  ; allow idldoc-resources directory to stay if it is a directory 
     1160  if (~file_test(resourceDestination, /directory)) then begin 
     1161    file_delete, resourceDestination, /recursive, /allow_nonexistent 
     1162    file_mkdir, resourceDestination     
     1163  endif 
     1164   
     1165  ; copy the resource files 
    11611166  file_copy, resourceLocation, resourceDestination, /recursive, /overwrite 
    11621167   
     1168  ; move the LaTeX files up a directory if needed 
    11631169  if (self.commentstyle eq 'latex') then begin 
    11641170    file_move, resourceDestination + 'idldoc' + ['.cls', '.sty'], $