File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ SOUND = 'sound.zip'
77SOUND_VERSION = 'v1.3.2'
88VIDEO = 'video-2.0-beta4.zip'
99VIDEO_VERSION = 'r6-v2.0-beta4'
10- EXAMPLES = '0.5.1 '
10+ EXAMPLES = '0.5.2 '
1111HOME_DIR = ENV [ 'HOME' ]
1212LIBRARY = File . join ( HOME_DIR , '.picrate' , 'libraries' )
13- EXAMPLES_DIR = File . join ( HOME_DIR , 'projects' , 'examples' )
13+ PROJECT_DIR = File . join ( HOME_DIR , 'projects' )
14+ EXAMPLES_DIR = File . join ( PROJECT_DIR , 'examples' )
1415CLOBBER . include ( EXAMPLES , SOUND , VIDEO )
1516
1617def dependency
@@ -78,7 +79,7 @@ desc 'copy examples'
7879task copy_examples : %i[ download_samples ] do
7980 system "tar xzvf #{ EXAMPLES } .tar.gz"
8081 FileUtils . rm_r EXAMPLES_DIR if File . exist? EXAMPLES_DIR
81- FileUtils . mkdir_p EXAMPLES_DIR
82+ FileUtils . mkdir_p PROJECT_DIR unless File . exist? PROJECT_DIR
8283 FileUtils . cp_r "picrate-examples-#{ EXAMPLES } " , EXAMPLES_DIR
8384 FileUtils . rm_r "picrate-examples-#{ EXAMPLES } "
8485end
You can’t perform that action at this time.
0 commit comments