From 47e04863eb1bd04c1914afb2e354d65088e81e7c Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 30 Sep 2012 09:02:14 +0400 Subject: [PATCH 1/2] Stop fixTexts.sh from rebuilding html files that didn't change. --- fixTexts.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/fixTexts.sh b/fixTexts.sh index 917199411..689dab8e2 100755 --- a/fixTexts.sh +++ b/fixTexts.sh @@ -1,6 +1,17 @@ #!/bin/bash + +cd `dirname $0` + +function process() { + if [ "$1" -nt "$2" ]; then + rst2html "$1" "$2" + else + echo "$2 - up to date." + fi +} + # this script is used for easy testing of the rst documentation files. -rst2html Readme.rst Readme.html -rst2html Compile.rst Compile.html -rst2html Lua\ API.rst Lua\ API.html -rst2html Contributors.rst > Contributors.html +process Readme.rst Readme.html +process Compile.rst Compile.html +process Lua\ API.rst Lua\ API.html +process Contributors.rst Contributors.html From 4de245d6911cf0e53c01d89aed3a18b285ce2168 Mon Sep 17 00:00:00 2001 From: jj Date: Sun, 30 Sep 2012 17:08:03 +0200 Subject: [PATCH 2/2] ruby: install generated autogen after copying *.rb --- plugins/ruby/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ruby/CMakeLists.txt b/plugins/ruby/CMakeLists.txt index b8c90d134..9d821f941 100644 --- a/plugins/ruby/CMakeLists.txt +++ b/plugins/ruby/CMakeLists.txt @@ -34,8 +34,8 @@ ADD_DEPENDENCIES(ruby ruby-autogen-rb) INSTALL(FILES ${RUBYLIB} DESTINATION ${DFHACK_LIBRARY_DESTINATION}) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ruby-autogen.rb DESTINATION hack/ruby) - INSTALL(DIRECTORY . DESTINATION hack/ruby FILES_MATCHING PATTERN "*.rb") + +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ruby-autogen.rb DESTINATION hack/ruby)