Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Nicer clean target for the Rakefile

  • Loading branch information...
commit d9e908a36509d50cc65b6064fb0a1c4edf32d417 1 parent ee49059
Patrice Neff authored May 26, 2008

Showing 1 changed file with 8 additions and 5 deletions. Show diff stats Hide diff stats

  1. 13  Rakefile
13  Rakefile
... ...
@@ -1,3 +1,11 @@
  1
+require 'rake/clean'
  2
+# Cleanup
  3
+CLEAN.include('**/*.pyc')
  4
+CLEAN.include('parser/servicegenLexer.py')
  5
+CLEAN.include('parser/servicegenParser.py')
  6
+CLEAN.include('parser/servicegen.tokens')
  7
+CLEAN.include('parser/servicegen__.g')
  8
+
1 9
 task :default => 'test'
2 10
 
3 11
 task :test => 'parser/servicegenLexer.py' do
@@ -8,8 +16,3 @@ file 'parser/servicegenLexer.py' => 'parser/servicegen.g' do |t|
8 16
   sh "java org.antlr.Tool parser/servicegen.g"
9 17
 end
10 18
 
11  
-task :clean do
12  
-  generated = ['parser/servicegenLexer.py', 'parser/servicegen.tokens',
13  
-               'parser/servicegen__.g', 'parser/servicegenParser.py']
14  
-  rm_f generated
15  
-end

0 notes on commit d9e908a

Please sign in to comment.
Something went wrong with that request. Please try again.