Skip to content

Instantly share code, notes, and snippets.

@pragdave
Created September 17, 2010 22:32
Show Gist options
  • Save pragdave/585080 to your computer and use it in GitHub Desktop.
Save pragdave/585080 to your computer and use it in GitHub Desktop.
NAME = "ruby3" # eg: JAERLANG, RAILS -*- ruby -*-
# This stanza is for the creation of the code .zip and .tgz files.
# It's also used for the .mobi file
TITLE = "Programming Ruby 1.9"
AUTHOR = "Thomas, with Fowler and Hunt"
CODE_IGNORE_LIST = "README"
require "../PPStuff/util/rake/main.rb"
###
# The DL section requires a simple .so to run its code
#
%w{ sl_dl.xml standard_library.xml }.each { |target| file target => "build-dl-so" }
task "build-dl-so" do
Dir.chdir("code/sl_dl") do
system("make lib.so")
end
end
##
# Build the lists of class and module methods for the builtins chapter
#
lists = %w{ tmp-class-list.pml tmp-module-list.pml }
LOCAL_TIDY_LIST.concat(lists)
file "builtins.xml" => lists
file "book.xml" => [ *lists, "build-dl-so" ]
task "tmp-class-list.pml" do
ruby "local/util/gen_class_list.rb ref_c_*.pml >tmp-class-list.pml"
end
task "tmp-module-list.pml" do
ruby "local/util/gen_class_list.rb ref_m_*.pml >tmp-module-list.pml"
end
Preprocessors.add('local/util/macho_index.rb')
Preprocessors.add('local/util/syntax.rb')
Preprocessors.add('local/util/code.rb', '-name #{target.source}')
Preprocessors.add('local/util/tex_table_filter.rb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment