aboutsummaryrefslogtreecommitdiff
path: root/compiled.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiled.go')
-rw-r--r--compiled.go43
1 files changed, 0 insertions, 43 deletions
diff --git a/compiled.go b/compiled.go
deleted file mode 100644
index 7a3bd67..0000000
--- a/compiled.go
+++ /dev/null
@@ -1,43 +0,0 @@
1/*
2
3 This file is part of FoldaWeb <https://github.com/Pacien/FoldaWeb>
4
5 FoldaWeb is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Affero General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 FoldaWeb is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with FoldaWeb. If not, see <http://www.gnu.org/licenses/>.
17
18*/
19
20package main
21
22import (
23 "fmt"
24 "os"
25)
26
27func compiled(sourceDir, outputDir string, exts []string, saveAs string) {
28 // remove previously compiled site
29 err := os.RemoveAll(outputDir)
30 if err != nil {
31 fmt.Println(err)
32 return
33 }
34
35 // compile everything
36 wait.Add(2)
37 go compile(sourceDir, make(map[string][]byte), sourceDir, outputDir, saveAs, exts, true)
38 go copyFiles(sourceDir, sourceDir, outputDir, exts, true)
39
40 // wait until all tasks are completed
41 wait.Wait()
42 fmt.Println("Compilation done.")
43}