blob: 5b99de7b05a347a3433e3930e3aa01c157b52e2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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')
|