Skip to content

Instantly share code, notes, and snippets.

@mackato
Created June 4, 2010 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mackato/424887 to your computer and use it in GitHub Desktop.
Save mackato/424887 to your computer and use it in GitHub Desktop.
EeePub maker.rb assets subdir diff
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