[brlcad-commits] SF.net SVN: brlcad:[50402] brlcad/trunk
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2012-05-02 03:33:03
|
Revision: 50402 http://brlcad.svn.sourceforge.net/brlcad/?rev=50402&view=rev Author: starseeker Date: 2012-05-02 03:32:55 +0000 (Wed, 02 May 2012) Log Message: ----------- This looks like it might be a viable way of regularly checking the Autotools distcheck target (at least to the extent of making sure it doesn't error out). Right now it looks like trunk Autotools distcheck is not happy, so this breaks distcheck-full until that gets sorted out. Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Added Paths: ----------- brlcad/trunk/misc/CMake/distcheck_autotools.cmake.in Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2012-05-02 03:17:11 UTC (rev 50401) +++ brlcad/trunk/CMakeLists.txt 2012-05-02 03:32:55 UTC (rev 50402) @@ -2089,6 +2089,10 @@ CREATE_DISTCHECK(odd_pathnames "-DCMAKE_BUILD_TYPE=Debug -DBRLCAD_BUNDLED_LIBS=BUNDLED" "1 Odd_ source dir ++" "1 Odd_ build dir ++" "1 Odd_ install dir ++") CREATE_DISTCHECK(in_src_dir "-DCMAKE_BUILD_TYPE=Debug -DBRLCAD_BUNDLED_LIBS=BUNDLED" "${CPACK_SOURCE_PACKAGE_FILE_NAME}" "${CPACK_SOURCE_PACKAGE_FILE_NAME}" "install" distcheck_in_src_dir.cmake.in) + # The following target can (and should) be removed once Autotools + # deprecation is complete + CREATE_DISTCHECK(autotools "" "${CPACK_SOURCE_PACKAGE_FILE_NAME}" "${CPACK_SOURCE_PACKAGE_FILE_NAME}" "install" distcheck_autotools.cmake.in) + # Now that we're set up and have added the extra targets we want for distcheck-full, define the build targets DEFINE_DISTCHECK_TARGET(STD) endif(NOT BRLCAD_IS_SUBBUILD) Added: brlcad/trunk/misc/CMake/distcheck_autotools.cmake.in =================================================================== --- brlcad/trunk/misc/CMake/distcheck_autotools.cmake.in (rev 0) +++ brlcad/trunk/misc/CMake/distcheck_autotools.cmake.in 2012-05-02 03:32:55 UTC (rev 50402) @@ -0,0 +1,63 @@ +# D I S T C H E C K _ I N _ S R C _ D I R . C M A K E . I N +# BRL-CAD +# +# Copyright (c) 2012 United States Government as represented by +# the U.S. Army Research Laboratory. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# +# 3. The name of the author may not be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS +# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +### +add_custom_target(distcheck-${TARGET_SUFFIX} + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Extracting TGZ archive..." + COMMAND ${CMAKE_COMMAND} -E remove distcheck_${TARGET_SUFFIX}.log + COMMAND ${CMAKE_COMMAND} -E remove_directory distcheck-${TARGET_SUFFIX} + COMMAND ${CMAKE_COMMAND} -E make_directory distcheck-${TARGET_SUFFIX} + COMMAND ${CMAKE_COMMAND} -E chdir distcheck-${TARGET_SUFFIX} ${CMAKE_COMMAND} -E tar xzf ../${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.gz + COMMAND ${CMAKE_COMMAND} -E make_directory distcheck-${TARGET_SUFFIX}/${install_dir} + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Extracting TGZ archive... Done." + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Configuring... " + COMMAND ${CMAKE_COMMAND} -E chdir distcheck-${TARGET_SUFFIX}/${CPACK_SOURCE_PACKAGE_FILE_NAME} ./autogen.sh @TARGET_REDIRECT@ + COMMAND ${CMAKE_COMMAND} -E chdir distcheck-${TARGET_SUFFIX}/${CPACK_SOURCE_PACKAGE_FILE_NAME} ./configure --enable-all @TARGET_REDIRECT@ + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Configuring... Done." + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Build Autotools distcheck target using source from TGZ archive..." + COMMAND ${CMAKE_COMMAND} -E chdir distcheck-${TARGET_SUFFIX}/${CPACK_SOURCE_PACKAGE_FILE_NAME} @DISTCHECK_BUILD_CMD@ distcheck @TARGET_REDIRECT@ + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Build Autotools distcheck target using source from TGZ archive... Done." + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Cleanup..." + COMMAND ${CMAKE_COMMAND} -E remove_directory distcheck-${TARGET_SUFFIX} + COMMAND ${CMAKE_COMMAND} -E echo "-- distcheck-${TARGET_SUFFIX} - Cleanup... Done." + COMMENT "[distcheck-${TARGET_SUFFIX}] Peforming distcheck - ${TARGET_SUFFIX} configuration..." + DEPENDS distcheck-source_archives + ) + +# Local Variables: +# tab-width: 8 +# mode: cmake +# indent-tabs-mode: t +# End: +# ex: shiftwidth=2 tabstop=8 Property changes on: brlcad/trunk/misc/CMake/distcheck_autotools.cmake.in ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |