m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-09-12 14:22:11 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-09-12 14:22:11 +0200
commit6698e73ea4a72b0be485129b15d6390951cf4c42 (patch)
treeb5b06d0ea672157c258ad8b606047953fd2946ab /scripts
parentf3039744d72454e7e3b8cb1032266bcc172ce488 (diff)
Create directories
Diffstat (limited to 'scripts')
-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'