root/trunk/Rakefile.local

Revision 38, 0.9 KB (checked in by deveiant, 3 months ago)
  • Updated jquery to 1.2.6
  • Focus the results of a quicksearch when it is off screen
  • Fixed the 'install' Rake task -- it now installs the templates and resources in addition to the ruby code.
  • Property svn:keywords set to Date Rev Author URL Id
Line 
1
2task :debug do
3    $DEBUG = true
4end
5
6task :coverage do
7     trace "No coverage generated"
8end
9
10namespace :release do
11    task :project => [ :cleanup_rdoc_output ]
12   
13    # Need to clean up .svn directories under the Rdoc output before publishing
14    task :cleanup_rdoc_output do
15        outputdir = DOCSDIR + 'html'
16        Pathname.glob( outputdir + '**/.svn' ).each do |pn|
17            rm_rf pn, :verbose => true, :noop => $DEBUG
18        end
19    end
20end
21
22task :install do
23    log "Installing template files"
24    sitelib = Pathname.new( CONFIG['sitelibdir'] )
25    sitearch = Pathname.new( CONFIG['sitearchdir'] )
26
27    Dir.chdir( LIBDIR ) do
28        EXTRA_PKGFILES.each do |templatefile|
29            relpath = templatefile.relative_path_from( LIBDIR )
30            target = sitelib + relpath
31            FileUtils.mkpath target.dirname,
32                :mode => 0755, :verbose => true, :noop => $dryrun unless target.dirname.directory?
33            FileUtils.install relpath, target,
34                :mode => 0644, :verbose => true, :noop => $dryrun
35        end
36    end
37end
Note: See TracBrowser for help on using the browser.