Currently we have 4800 files in trunk. 1500 file are boost headers. These 1500 files we never touch, but we check them out, check them for changes, and so on.
It is simple to replace the files with one tar.gz which will be extracted while the autogen.sh or cmake run. What do you think about replacing boost/boost by boost/boost.tar.gz and attached patch? Peter
Index: boost/CMakeLists.txt =================================================================== --- boost/CMakeLists.txt (Revision 40235) +++ boost/CMakeLists.txt (Arbeitskopie) @@ -4,5 +4,11 @@ # Copyright (c) 2006-2011 Peter Kümmel, <[email protected]> # +if (NOT EXISTS ${CMAKE_BINARY_DIR}/boost/boost) + message(STATUS "Extracting boost ...") + execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${CMAKE_SOURCE_DIR}/boost/boost.tar.gz + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/boost) +endif() + add_subdirectory(libs) Index: autogen.sh =================================================================== --- autogen.sh (Revision 40235) +++ autogen.sh (Arbeitskopie) @@ -87,6 +87,12 @@ echo "Building po/POTFILES.in..." make -s -f po/Rules-lyx srcdir=po top_srcdir=. po/POTFILES.in +if [ ! -d boost/boost ] +then + echo "Extracing boost headers..." + tar -xf boost/boost.tar.gz -C boost +fi + echo echo 'run "./configure ; make"' echo Index: CMakeLists.txt =================================================================== --- CMakeLists.txt (Revision 40235) +++ CMakeLists.txt (Arbeitskopie) @@ -482,7 +482,7 @@ set(Lyx_Boost_Libraries boost_signals boost_regex) endif() add_definitions(-DBOOST_USER_CONFIG="<config.h>") - include_directories(${TOP_SRC_DIR}/boost) + include_directories(${TOP_BINARY_DIR}/boost) add_subdirectory(boost "${TOP_BINARY_DIR}/boost") endif()
