Created
June 4, 2010 03:19
-
-
Save mackato/424887 to your computer and use it in GitHub Desktop.
EeePub maker.rb assets subdir diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78c78,79 | |
< FileUtils.cp(file, dir) | |
--- | |
> FileUtils.mkdir_p(File.join(dir, file[:dir])) if file[:dir] | |
> FileUtils.cp(file[:path], File.join(dir, (file[:dir] || ''))) | |
98c99,101 | |
< :manifest => @files.map{|i| File.basename(i)}, | |
--- | |
> :manifest => @files.map{|i| | |
> i[:dir] ? File.join(i[:dir], File.basename(i[:path])) : File.basename(i[:path]) | |
> }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment