From 6698e73ea4a72b0be485129b15d6390951cf4c42 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 12 Sep 2021 14:22:11 +0200 Subject: Create directories --- scripts/build.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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' -- cgit v1.2.3