blob: d412684c4430993d534ed0764974437544b69a5a (
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
|
generators:
make openring
make fortune
openring:
generators/openring/openring \
-s "https://drewdevault.com/feed.xml" \
-s "https://mxb.dev/feed.xml" \
-s "https://www.taniarascia.com/rss.xml" \
< generators/openring/template.html \
> generators/hugo/themes/tdro/layouts/partials/generators/openring/openring.html
fortune:
strfile generators/fortune/quotes.fortune
hugo:
ln -sfT ../../public generators/hugo/public
cd generators/hugo && hugo && { cd ../.. || exit 1; }
cockpit:
sed --in-place "s|^hugo_base_dir.*|hugo_base_dir: $$PWD/generators/hugo|" cockpit/addons/Hugo/config.yaml
sed --in-place "s|^hugo_theme.*|hugo_theme: tdro|" cockpit/addons/Hugo/config.yaml
migration:
sqlite3 database/sqlite.db < database/contactform.sql
sed --in-place "s|'sql:;dbname=sql_database'|'sqlite:' . __DIR__ . '/database/sqlite.db'|" config.php
.PHONY: generators cockpit
|