m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/scripts/build.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build.rb')
-rw-r--r--scripts/build.rb6
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'