[824] MacRuby/trunk/lib/hotcocoa/template.rb
Revision: 824 http://trac.macosforge.org/projects/ruby/changeset/824 Author: lsansonetti@apple.com Date: 2009-02-28 19:22:41 -0800 (Sat, 28 Feb 2009) Log Message: ----------- fix for #181 (patch by sandor.szuecs AT fu-berlin.de) Modified Paths: -------------- MacRuby/trunk/lib/hotcocoa/template.rb Modified: MacRuby/trunk/lib/hotcocoa/template.rb =================================================================== --- MacRuby/trunk/lib/hotcocoa/template.rb 2009-03-01 02:42:28 UTC (rev 823) +++ MacRuby/trunk/lib/hotcocoa/template.rb 2009-03-01 03:22:41 UTC (rev 824) @@ -4,6 +4,7 @@ module HotCocoa class Template def self.copy_to(directory, app_name) + FileUtils.mkdir_p(directory) dir = Config::CONFIG['datadir'] Dir.glob(File.join(dir, "hotcocoa_template", "**/*")).each do |file| short_name = file[(dir.length+19)..-1] @@ -19,4 +20,4 @@ end end end -end \ No newline at end of file +end
participants (1)
-
source_changes@macosforge.org