diff options
| author | Michel Etienne | 2014-11-13 17:02:08 +0100 | 
|---|---|---|
| committer | Michel Etienne | 2014-11-13 17:02:08 +0100 | 
| commit | 0350755d84ca7c19398799f48914cd1ae2ede23d (patch) | |
| tree | dd12f2d8ef032398c3189cac7f32795d0608d140 /lib/tasks/userdoc.rake | |
| parent | 28350f95744a03290a28dd8d941d1e6248f2eeb2 (diff) | |
| download | chouette-core-0350755d84ca7c19398799f48914cd1ae2ede23d.tar.bz2 | |
prepare version 2.5.1
Diffstat (limited to 'lib/tasks/userdoc.rake')
| -rw-r--r-- | lib/tasks/userdoc.rake | 23 | 
1 files changed, 14 insertions, 9 deletions
| diff --git a/lib/tasks/userdoc.rake b/lib/tasks/userdoc.rake index df72c32e4..8f93644c7 100644 --- a/lib/tasks/userdoc.rake +++ b/lib/tasks/userdoc.rake @@ -27,16 +27,21 @@ namespace :doc do      Dir.chdir "tmp/doc"      system "pandoc -s -o ../../userdoc.docx temp.textile" -    # clean working directory -    puts "clean temp files" -    Dir.chdir "../.." -    FileUtils.rm_r("tmp/doc") if File.exist?("tmp/doc") -     -    # patch docx -    patch_docx "userdoc.docx" +    if !File.exists?("userdoc.docx") +      puts "pandoc failed to produce document" +    else   +      # patch docx +      patch_docx "userdoc.docx" +       +      # clean working directory +      puts "clean temp files" +      Dir.chdir "../.." +      FileUtils.rm_r("tmp/doc") if File.exist?("tmp/doc") +       +      # end job +      puts "User doc completed" +    end -    # end job -    puts "User doc completed"    end    def merge_textiles | 
