|
From: <ai...@us...> - 2011-01-09 18:51:59
|
Revision: 11457
http://plplot.svn.sourceforge.net/plplot/?rev=11457&view=rev
Author: airwin
Date: 2011-01-09 18:51:53 +0000 (Sun, 09 Jan 2011)
Log Message:
-----------
Implement (Unix) check_plplot_octave_def custom target which generates a check
version of plplot_octave_def from bindings/swig-support/plplotcapi.i and
compares those results with plplot_octave_def in the source tree.
Modified Paths:
--------------
trunk/bindings/octave/CMakeLists.txt
Modified: trunk/bindings/octave/CMakeLists.txt
===================================================================
--- trunk/bindings/octave/CMakeLists.txt 2011-01-08 17:09:05 UTC (rev 11456)
+++ trunk/bindings/octave/CMakeLists.txt 2011-01-09 18:51:53 UTC (rev 11457)
@@ -119,12 +119,28 @@
${CMAKE_CURRENT_BINARY_DIR}/.octaverc
@ONLY
)
+
+ # Add (Unix) custom target to check that plplot_oct_def is up to date.
+ add_custom_target(
+ check_plplot_octave_def
+ COMMAND ${CMAKE_COMMAND} -E remove -f
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_octave_compare
+ COMMAND
+ sed -f ${CMAKE_CURRENT_SOURCE_DIR}/global_defines.sed <
+ ${CMAKE_SOURCE_DIR}/bindings/swig-support/plplotcapi.i >
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_octave_compare
+ COMMAND
+ ${CMAKE_COMMAND} -E echo Check that plplot_octave_def is up to date.
+ COMMAND
+ cmp ${CMAKE_CURRENT_SOURCE_DIR}/plplot_octave_def
+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_octave_compare
+ )
+
# Build octave interface.
-
if(ENABLE_swig_octave)
# Order matters here; plplot_oct_def (which contains all the
- # global commands must occur first.
+ # global commands) must occur first.
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/plplot_stub.m
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|