vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/rake/manual.rb
### Set up the tasks for building the manual
Set up the tasks for building the manual
Set up the tasks for building the manual
def define
			unless Rake.application.last_comment
				desc "Generate the manual"
			end
			basedir     = Pathname.new( @base_dir )
			sourcedir   = basedir + @source_dir
			layoutsdir  = basedir + @layouts_dir
			outputdir   = basedir + @output_dir
			resourcedir = basedir + @resource_dir
			libdir      = basedir + @lib_dir
			load_filter_libraries( libdir )
			task @name => "#@name:build"
			task "clobber_#@name" => "#@name:clobber"
			namespace( self.name ) do
				setup_resource_copy_tasks( resourcedir, outputdir )
				manual_pages = setup_page_conversion_tasks( sourcedir, outputdir, layoutsdir )
				task :build => [ :copy_resources, *manual_pages ]
				task :clobber do
					RakeFileUtils.verbose( $verbose ) do
						rm_f manual_pages.to_a
					end
					remove_dir( outputdir ) if ( outputdir + '.buildtime' ).exist?
				end
				task :rebuild => [ :clobber, :build ]
	        end
		end
def define unless Rake . application . last_comment desc "Generate the manual" end basedir = Pathname . new ( @base_dir ) sourcedir = basedir + @source_dir layoutsdir = basedir + @layouts_dir outputdir = basedir + @output_dir resourcedir = basedir + @resource_dir libdir = basedir + @lib_dir load_filter_libraries ( libdir ) task @name => "#@name:build" task "clobber_#@name" => "#@name:clobber" namespace ( self . name ) do setup_resource_copy_tasks ( resourcedir , outputdir ) manual_pages = setup_page_conversion_tasks ( sourcedir , outputdir , layoutsdir ) task :build => [ :copy_resources , * manual_pages ] task :clobber do RakeFileUtils . verbose ( $verbose ) do rm_f manual_pages . to_a end remove_dir ( outputdir ) if ( outputdir + '.buildtime' ) . exist? end task :rebuild => [ :clobber , :build ] end end
Set up the tasks for building the manual
Set up the tasks for building the manual
# Set up a description if the caller hasn't already defined one # Make Pathnames of the directories relative to the base_dir # Declare the tasks outside the namespace that point in