mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 08:46:34 +01:00
Tidied some of the CSS for the user and login pages. Tidied the flash display so that it dynamically shows either the notice, warning or message flash as appropriate. Note that the login tests are broken for now. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@190 a4c988fc-2ded-0310-b66e-134b36920a42
35 lines
599 B
Ruby
35 lines
599 B
Ruby
# Example Rakefile -*- ruby -*-
|
|
# Using the power of Ruby
|
|
|
|
task :default => [:main]
|
|
|
|
def ext(fn, newext)
|
|
fn.sub(/\.[^.]+$/, newext)
|
|
end
|
|
|
|
SRCFILES = Dir['*.c']
|
|
OBJFILES = SRCFILES.collect { |fn| ext(fn,".o") }
|
|
|
|
OBJFILES.each do |objfile|
|
|
srcfile = ext(objfile, ".c")
|
|
file objfile => [srcfile] do |t|
|
|
sh "gcc #{srcfile} -c -o #{t.name}"
|
|
end
|
|
end
|
|
|
|
file "main" => OBJFILES do |t|
|
|
sh "gcc -o #{t.name} main.o a.o b.o"
|
|
end
|
|
|
|
task :clean do
|
|
rm_f FileList['*.o']
|
|
Dir['*~'].each { |fn| rm_f fn }
|
|
end
|
|
|
|
task :clobber => [:clean] do
|
|
rm_f "main"
|
|
end
|
|
|
|
task :run => ["main"] do
|
|
sh "./main"
|
|
end
|