-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.fish
More file actions
executable file
·35 lines (30 loc) · 798 Bytes
/
build.fish
File metadata and controls
executable file
·35 lines (30 loc) · 798 Bytes
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
31
32
33
34
35
#!/usr/bin/env fish
pushd posts
for filename in *.md
set filename $(path basename -E $filename)
echo processing $filename
if not pandoc \
-V homeurl=file:///Users/rodion/src/site/index.html \
--template post-template.pd \
-s -c style.css \
--syntax-highlighting my.theme \
$filename.md -o $filename.html
echo "error in pandoc"
exit 1
end
end
popd
pushd feed-builder
if not cargo build -r
echo "error in cargo"
exit 1
end
popd
if not cp feed-builder/target/release/feed-builder ./feed-builder-exe
echo "error in cp"
exit 1
end
if not ./feed-builder-exe --html-dir=posts --base-url=https://rodio.codeberg.page/ --title="Rodion's Blog"
echo "error in feed-builder-exe"
exit 1
end