From c4a4202f5b2b1d1794182e19bf59c11e74fe88e8 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 13 Jun 2009 05:43:41 +0200 Subject: add checks --- data/apps.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'data') diff --git a/data/apps.rb b/data/apps.rb index 1a9b65d0..112dbf60 100644 --- a/data/apps.rb +++ b/data/apps.rb @@ -46,6 +46,7 @@ module Application end def vi(rc) + check rc commands = [ 'map h :quit', 'map q h', @@ -56,18 +57,22 @@ module Application end def javac(rc) + check rc "javac #{~rc}" end def java(rc) + check rc "java #{rc.files.map{|x| ~x.before_last('.')}.join(' ')}" end def firefox(rc) + check rc "firefox #{~rc}" end def make(rc) + check rc case rc.mode when 0; "make" when 1; "make install" @@ -76,6 +81,7 @@ module Application end def rake(rc) + check rc "rake" end end -- cgit 1.4.1-2-gfad0