Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Conflicts:
	fixTexts.sh
  • Loading branch information
peterix committed Sep 30, 2012
2 parents 67adf2d + 4de245d commit ba5b863
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
20 changes: 16 additions & 4 deletions fixTexts.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
#!/bin/bash
# regenerate documentation after editing the .rst files. Requires python and docutils.
rst2html --no-generator --no-datestamp Readme.rst Readme.html
rst2html --no-generator --no-datestamp Compile.rst Compile.html
rst2html --no-generator --no-datestamp Lua\ API.rst Lua\ API.html
rst2html --no-generator --no-datestamp Contributors.rst Contributors.html

cd `dirname $0`

function process() {
if [ "$1" -nt "$2" ]; then
rst2html --no-generator --no-datestamp "$1" "$2"
else
echo "$2 - up to date."
fi
}

process Readme.rst Readme.html
process Compile.rst Compile.html
process Lua\ API.rst Lua\ API.html
process Contributors.rst Contributors.html

2 changes: 1 addition & 1 deletion library/xml
Submodule xml updated from 98d7eb to 2f76de
4 changes: 2 additions & 2 deletions plugins/ruby/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ba5b863

Please sign in to comment.