summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-14 20:42:43 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-14 20:42:43 -0600
commite24dd6d630cf558c616c1252bacfff6d343b4194 (patch)
tree8e272e095f2f906adeae4688f4b81396926e7a73 /Makefile
parente41ff2b897be24a894e75b850f1c06652cc034be (diff)
Import posts in dev-shell target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5eadc0..94eafeb 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,11 @@ test:
srv.dev-shell:
$$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \
- --command "cd srv/src; return"
+ --command " \
+ cd srv/src; \
+ go run cmd/import-posts/main.go ../../static/src/_posts/*; \
+ return; \
+ "
srv.shell:
nix-shell -A srv.shellWithBuild --arg baseConfig '(import ${CONFIG})' \