Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > what is wrong with this Rakefile?

Reply
Thread Tools

what is wrong with this Rakefile?

 
 
ozizus
Guest
Posts: n/a
 
      11-01-2006
when I do "rake debug" rake gives this error:
"rake aborted! Don't know how to build task 'crb\diriterate.crb.cpp'"
I just cant see what I do wrong. I have *.crb.cpp files in the crb
folder and *.cpp files in the lzz folder. All I want is to produce
cpp&h files for lzz files, while producing lzz files from *.crb.cpp
files...

the rakefile.rb is:
=================================
# directories
crbdir = "crb"
lzzdir = "lzz"
cppoutdir = "cpp_produced"
cpporigdir = "cpp_orig"


olddir = Dir.pwd
Dir.chdir crbdir

LZZFILES = []
CPPFILES = []
CRBFILES = Dir['*.crb.cpp']
CRBFILES.each do |fn|
parts = fn.split('.')
parts.delete_at(-2)
LZZFILES << parts.join('.')
CPPFILES << parts.join('.')
end

Dir.chdir olddir

for i in 0..LZZFILES.length-1
file lzzdir + '\\' + LZZFILES[i] => [crbdir + '\\' + CRBFILES[i]] do
sh "ruby crb.rb -i #{crbdir} -o #{lzzdir} -s #{CRBFILES[i]} -t
#{LZZFILES[i]}"
end
end

for i in 0..CPPFILES.length-1
file cppoutdir + '\\' + CPPFILES[i] => [lzzdir + '\\' + LZZFILES[i]]
do
sh "lzz -hd -sd -o #{cppoutdir} #{lzzdir}\\#{LZZFILES[i]}"
end
end


task :debug do
sh 'vcbuild main.sln "Debug|Win32"'
end

task :release do
sh 'vcbuild main.sln "Debug|Win32"'
end


# dependencies

task :rundebug => :debug
task :debug => CPPFILES.collect{|fn| cppoutdir + '\\' + fn}

============

thanks in advance

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have I bought wrong product? enquirer Wireless Networking 2 06-10-2005 10:59 PM
Zero Config keeps connecting to the wrong AP =?Utf-8?B?ZGdyaWZmaXRo?= Wireless Networking 2 03-04-2005 05:52 PM
Is XML Doc wrong or is Schema wrong? (or both) Matthew XML 7 01-07-2005 10:05 PM
wrong connection status Peter Welk Wireless Networking 0 12-22-2004 03:26 PM
XP SP2 Wrong IP on connection D Wells Wireless Networking 3 12-09-2004 03:35 AM



Advertisments