aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jan Knížek <jk@janknizek.cz>2020-07-21 18:05:46 +0200
committerLibravatar Jan Knížek <jk@janknizek.cz>2020-07-21 18:05:46 +0200
commit7494ab912056b796d67ca43af2bb1a8bde62fdf5 (patch)
treec8eedc91b03d59ff443b24e9b921617a93ba122d
parentd421ff0d8e4f8080fd8ed7d124ad4a2b7cc3eb65 (diff)
Added basic building structure
-rw-r--r--Makefile21
-rw-r--r--README.md16
-rw-r--r--templates/default.mustache20
3 files changed, 57 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..64b4cf0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+# this is expected to be executed from the root of the template repo
+BUILDER=pybase16
+THEME_DIR=themes
+TEMPLATE_DIR=templates
+TEMPLATE_NAME=$(shell basename $(shell pwd))
+OUTPUT_DIR=output
+SOURCES_DIR=sources
+SCHEMES_DIR=schemes
+
+all: update build
+
+update:
+ $(BUILDER) update
+
+build:
+ $(BUILDER) build -t $(shell pwd) -o $(OUTPUT_DIR)
+ mv $(OUTPUT_DIR)/$(TEMPLATE_NAME)/themes/* $(THEME_DIR)/
+ rm -rf $(SOURCES_DIR) $(OUTPUT_DIR) $(TEMPLATE_DIR)/*/ $(SCHEMES_DIR)
+
+clean:
+ rm -rf $(THEME_DIR)/* sources.yaml
diff --git a/README.md b/README.md
index 4e56648..f5d4ad3 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,17 @@
# base16-wofi
+
+## building
+
+Dependencies:
+
+base16-python-build:
+
+```
+pip install pybase16-builder
+```
+
+Building:
+
+```
+make all
+```
diff --git a/templates/default.mustache b/templates/default.mustache
index e69de29..97c3b77 100644
--- a/templates/default.mustache
+++ b/templates/default.mustache
@@ -0,0 +1,20 @@
+/* base16-wofi (https://sr.ht/~knezi/base16-wofi)
+ * Base16 wofi template by knezi
+ * {{scheme-name}} scheme by {{scheme-author}} */
+
+base00 = "#{{base00-hex}}"
+base01 = "#{{base01-hex}}"
+base02 = "#{{base02-hex}}"
+base03 = "#{{base03-hex}}"
+base04 = "#{{base04-hex}}"
+base05 = "#{{base05-hex}}"
+base06 = "#{{base06-hex}}"
+base07 = "#{{base07-hex}}"
+base08 = "#{{base08-hex}}"
+base09 = "#{{base09-hex}}"
+base0A = "#{{base0A-hex}}"
+base0B = "#{{base0B-hex}}"
+base0C = "#{{base0C-hex}}"
+base0D = "#{{base0D-hex}}"
+base0E = "#{{base0E-hex}}"
+base0F = "#{{base0F-hex}}"