summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..5b99de7
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,30 @@
+project('website')
+
+fs = import('fs')
+
+emacs = find_program('emacs')
+
+site = 'jturnerusa.dev'
+
+build_command = [
+ emacs,
+ '@INPUT@',
+ '-batch',
+ '-eval',
+ '(org-export-to-file \'html "/dev/stdout")',
+]
+
+posts = files('index.org')
+
+foreach post : posts
+ custom_target(
+ output: fs.replace_suffix(post, '.html'),
+ input: post,
+ command: build_command,
+ install: true,
+ install_dir: '/var/www' / site,
+ capture: true,
+ )
+endforeach
+
+subdir('blog')