forked from jvoorhis/midiator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
41 lines (35 loc) · 1.05 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env ruby
#
# Rakefile for MIDIator.
#
# == Authors
#
# * Ben Bleything <[email protected]>
#
# == Copyright
#
# Copyright (c) 2008 Ben Bleything
#
# This code released under the terms of the MIT license.
#
require 'pathname'
require 'rubygems'
require 'rake'
# Pathname constants
BASE_DIR = Pathname.new( __FILE__ ).expand_path.dirname.relative_path_from( Pathname.getwd )
LIB_DIR = BASE_DIR + 'lib'
EXAMPLE_DIR = BASE_DIR + 'examples'
MISC_DIR = BASE_DIR + 'misc'
SPEC_DIR = BASE_DIR + 'spec'
RAKE_TASK_DIR = MISC_DIR + 'rake'
# File glob constants
SPEC_FILES = Pathname.glob( SPEC_DIR + '**/*_spec.rb' )
LIB_FILES = Pathname.glob( LIB_DIR + '**/*.rb' )
EXAMPLE_FILES = Pathname.glob( EXAMPLE_DIR + '**/*.rb' )
MISC_FILES = Pathname.glob( MISC_DIR + '**/*.rb' )
RELEASE_FILES = SPEC_FILES + LIB_FILES + EXAMPLE_FILES + MISC_FILES
$LOAD_PATH.unshift( LIB_DIR )
require RAKE_TASK_DIR + 'testing.rb'
require RAKE_TASK_DIR + 'rdoc.rb'
require RAKE_TASK_DIR + 'packaging.rb'
task :default => [ :spec ]