Skip to content

Commit bfa0b97

Browse files
committed
add back top level Rakefile
1 parent a826a60 commit bfa0b97

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

Rakefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -*- encoding: utf-8 -*-
2+
3+
root = File.expand_path(__dir__)
4+
5+
desc 'run contributed samples'
6+
task :default => [:all]
7+
8+
desc 'run all autorun samples except hype'
9+
task :all do
10+
Rake::Task[:contributed].execute
11+
Rake::Task[:vecmath].execute
12+
Rake::Task[:shaders].execute
13+
Rake::Task[:slider].execute
14+
end
15+
16+
desc 'run contributed samples'
17+
task :contributed do
18+
sh "cd #{root}/contributed && rake"
19+
end
20+
21+
desc 'shaders'
22+
task :shaders do
23+
sh "cd #{root}/processing_app/topics/shaders && rake"
24+
end
25+
26+
desc 'vecmath'
27+
task :vecmath do
28+
sh "cd #{root}/processing_app/library/vecmath/vec2d && rake"
29+
sh "cd #{root}/processing_app/library/vecmath/vec3d && rake"
30+
sh "cd #{root}/processing_app/library/vecmath/arcball && rake"
31+
end
32+
33+
desc 'hype'
34+
task :hype do
35+
sh "cd #{root}/external_library/java/hype && rake"
36+
end
37+
38+
desc 'slider'
39+
task :slider do
40+
sh "cd #{root}/processing_app/library/slider && rake"
41+
end

processing_app/topics/shaders/bw_shader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def setup
77
sketch_title 'Bw shader'
88
# @label = load_image('lachoy.jpg') # sketch needs --noruby flag to run
99
# @label = load_image((File.absolute_path('data/lachoy.jpg')) # no flag required
10-
@label = load_image((data_path('lachoy.jpg')) # no flag required
10+
@label = load_image(data_path('lachoy.jpg')) # no flag required
1111
@can = create_can(100, 200, 32, label)
1212
# @bw_shader = load_shader('bwfrag.glsl') # sketch needs --noruby flag to run
1313
# @bw_shader = load_shader(File.absolute_path('data/bwfrag.glsl')) # no flag required

0 commit comments

Comments
 (0)