]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
another cpack tweak. Autotools finally working as expected
authorJosh <jrosenba@cisco.com>
Tue, 2 Dec 2014 18:11:35 +0000 (12:11 -0600)
committerJosh <jrosenba@cisco.com>
Tue, 2 Dec 2014 18:11:35 +0000 (12:11 -0600)
cmake/copy_symlinks.cmake [deleted file]
cmake/packaging_data.cmake

diff --git a/cmake/copy_symlinks.cmake b/cmake/copy_symlinks.cmake
deleted file mode 100644 (file)
index 49db2c5..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-if (NOT SOURCE_DIRECTORY)
-    message (FATAL_ERROR "SOURCE_DIRECTORY must be defined")
-
-else()
-    set (link_dir "${SOURCE_DIRECTORY}/tmp")
-    execute_process ( COMMAND ${CMAKE_COMMAND} -E make_directory "${link_dir}")
-
-
-    file (GLOB ALL_FILES RELATIVE ${SOURCE_DIRECTORY} "*")
-
-    foreach (f ${ALL_FILES})
-        if ( IS_SYMLINK ${f} )
-
-            #  This two step copy process is necessary to ensure the binary
-            #  is copied rather than the symlink.  So, the first 'copy'
-            #  command ensure the binary has a newer timestamp than
-            #  the symlink (cmake won't copy if the two files have
-            #  the same timestamp).  The second copy will overwrite
-            #  the original symlink.
-
-            execute_process ( COMMAND ${CMAKE_COMMAND} -E copy "${f}" "${link_dir}/${f}" )
-            execute_process ( COMMAND ${CMAKE_COMMAND} -E copy "${link_dir}/${f}" "${f}" )
-        endif ( IS_SYMLINK ${f} )
-    endforeach(f)
-
-    execute_process ( COMMAND ${CMAKE_COMMAND} -E remove_directory "${link_dir}")
-endif()
index c4948f6e0388889a0d312f25a44969c7c8531eec..27d16aff8a744f6264c6132c569619b1a393e821 100644 (file)
@@ -12,28 +12,9 @@ add_custom_target( autotools_symlinks
     COMMENT "recreating autotools symlinks"
 )
 
-add_custom_target( copy_symlinks
-    COMMAND
-        ${CMAKE_COMMAND} -DSOURCE_DIRECTORY=${CMAKE_SOURCE_DIR}
-        -P ${CMAKE_CURRENT_LIST_DIR}/copy_symlinks.cmake
-    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
-    COMMENT "converting top level symlinks to binaries"
-)
-
-add_custom_target( copy_m4_symlinks
-    COMMAND
-        ${CMAKE_COMMAND}
-        -DSOURCE_DIRECTORY=${CMAKE_SOURCE_DIR}/m4
-        -P ${CMAKE_CURRENT_LIST_DIR}/copy_symlinks.cmake
-    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/m4
-    COMMENT "converting m4 symlinks to binaries"
-)
-
 add_custom_target( dist
     COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target copy_manuals_to_source
     COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target autotools_binaries
-#    COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target copy_symlinks
-#    COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target copy_m4_symlinks
     COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target package_source
     COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target delete_manuals_in_source
     COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target autotools_symlinks  # recreate autotool links.