aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-16 16:56:43 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-16 16:56:43 +0200
commit861b955552d42b048d1ba17d4a48c953aeefe272 (patch)
tree629b91ff14e422a69682f267f085f170fd2ab251 /scripts
parenta10ce5d3e2e95ebe88ecdfd22a0fc689def2ab9c (diff)
add rss feed
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build3
-rwxr-xr-xscripts/postinfo2
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build b/scripts/build
index b9c5dd0..0a5e246 100755
--- a/scripts/build
+++ b/scripts/build
@@ -15,6 +15,9 @@ npx next build
echo "-> exporting static files..."
npx next export
+echo "-> generating atom.xml..."
+./rss/genrss
+
echo "-> cleaning $web_root..."
rm -rf $web_root/*
diff --git a/scripts/postinfo b/scripts/postinfo
index c2a1597..d6da015 100755
--- a/scripts/postinfo
+++ b/scripts/postinfo
@@ -1,5 +1,7 @@
#!/bin/sh
+cd "$(dirname $0)"
+
filename=$1
jq -n \