gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, cmake, updated. 203e7f84ea7f296b61d3bb80


From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. 203e7f84ea7f296b61d3bb80d1fc458a3fe5a58d
Date: Sun, 17 Feb 2013 17:11:09 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, cmake has been updated
       via  203e7f84ea7f296b61d3bb80d1fc458a3fe5a58d (commit)
      from  4db69d42558bae4bb3fb4eccc91671ee16ccfe08 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=203e7f84ea7f296b61d3bb80d1fc458a3fe5a58d

commit 203e7f84ea7f296b61d3bb80d1fc458a3fe5a58d
Author: Juergen Kahrs <address@hidden>
Date:   Sun Feb 17 18:10:54 2013 +0100

    Target make doc works again.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80c3d50..89d3920 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -89,7 +89,7 @@ add_subdirectory(extension)
 if(NOT ${CMAKE_CROSSCOMPILING} STREQUAL "TRUE")
   enable_testing()
   add_subdirectory(test)
-  if (${LATEX_COMPILER})
+  if (LATEX_COMPILER)
     add_subdirectory(doc)
   endif()
 endif()
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 7baf5ad..478b1c1 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -31,11 +31,25 @@ add_custom_command(
   COMMAND texi2dvi  --clean gawkinet.texi gawk.texi
   COMMAND groff -man gawk.1 > gawk.1.ps
   COMMAND groff -man igawk.1 > igawk.1.ps
-  COMMAND ps2pdf gawk.1.ps gawk.1.pdf
-  COMMAND ps2pdf igawk.1.ps igawk.1.pdf
-  COMMAND dvips -o gawk.ps gawk.dvi
-  COMMAND dvips -o gawkinet.ps gawkinet.dvi
-  COMMAND ps2pdf gawk.1.ps gawk.1.pdf
-  COMMAND ps2pdf gawkinet.ps gawkinet.pdf
 )
 
+if (DVIPS_CONVERTER)
+  add_custom_command(
+    TARGET doc
+    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+    COMMAND dvips -o gawk.ps gawk.dvi
+    COMMAND dvips -o gawkinet.ps gawkinet.dvi
+  )
+  if (PS2PDF_CONVERTER)
+    message(STATUS "Converting .ps to .pdf")
+    add_custom_command(
+      TARGET doc
+      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+      COMMAND ps2pdf gawk.1.ps gawk.1.pdf
+      COMMAND ps2pdf igawk.1.ps igawk.1.pdf
+      COMMAND ps2pdf gawk.1.ps gawk.1.pdf
+      COMMAND ps2pdf gawkinet.ps gawkinet.pdf
+    )
+  endif()
+endif()
+

-----------------------------------------------------------------------

Summary of changes:
 CMakeLists.txt     |    2 +-
 doc/CMakeLists.txt |   26 ++++++++++++++++++++------
 2 files changed, 21 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]