Show
Ignore:
Timestamp:
07/24/08 19:47:42 (4 months ago)
Author:
deveiant
Message:

Updated build system

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/rakefile-work/convertdb.rb

    r92 r94  
    111111        default = nil 
    112112        wndirs = Pathname.glob( Pathname.getwd + 'WordNet-*' ) 
    113         unless wndirs.empty? 
    114             default = wndirs.first 
     113        localdict = Pathname.getwd + 'dict' 
     114        if !wndirs.empty? 
     115            default = wndirs.first + 'dict' 
     116        elsif localdict.exist? 
     117            default = localdict 
    115118        else 
    116             default = '/usr/local/WordNet-3.0' 
    117         end 
    118  
    119         # :TODO: Do some more intelligent searching here 
     119            default = '/usr/local/WordNet-3.0/dict' 
     120        end 
     121 
    120122        message "Where can I find the WordNet data files?\n" 
    121         datadir = prompt_with_default( "Data directory", default + "/dict" ) 
     123        datadir = prompt_with_default( "Data directory", default ) 
    122124        datadir = Pathname.new( datadir ) 
    123125