diff options
-rw-r--r-- | scripts/build.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build.rb b/scripts/build.rb index 1ad5472..1cc1344 100644 --- a/scripts/build.rb +++ b/scripts/build.rb @@ -1,4 +1,5 @@ require 'erb' +require 'fileutils' require './lib/song' require './lib/songs' @@ -11,6 +12,11 @@ require './lib/statics' statics = [ 'style.css' ] +FileUtils.mkdir_p(BuildDir) +FileUtils.mkdir_p(build SongsDir) +FileUtils.mkdir_p(TmpDir) +FileUtils.mkdir_p(tmp SongsDir) + P = Pather.new P.add 'index', 'index.html' |