summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscript/check (renamed from check)0
-rwxr-xr-xscript/deploy (renamed from deploy)3
-rwxr-xr-xscript/watch3
-rw-r--r--site.hs2
4 files changed, 6 insertions, 2 deletions
diff --git a/check b/script/check
index 6428077..6428077 100755
--- a/check
+++ b/script/check
diff --git a/deploy b/script/deploy
index 0a37a83..ec2a6f3 100755
--- a/deploy
+++ b/script/deploy
@@ -55,4 +55,5 @@ curl \
http://www.bing.com/ping?sitemap=https%3A%2F%2Fwww.skreutz.com/sitemap.xml \
|| ( >&2 printf "error: failed to submit live sitemap to bing.com\\n" )
-/bin/sh "${root}/check"
+# shellcheck source=./check
+. "${root}/script/check"
diff --git a/script/watch b/script/watch
new file mode 100755
index 0000000..f12d1a7
--- /dev/null
+++ b/script/watch
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+cabal v2-run exe:site -- watch
diff --git a/site.hs b/site.hs
index 6509e4c..17d0aed 100644
--- a/site.hs
+++ b/site.hs
@@ -93,7 +93,7 @@ main = hakyllWith hakyllConfig $ do
hakyllConfig :: Configuration
hakyllConfig = defaultConfiguration
{ previewPort = 8080
- , deployCommand = "./deploy"
+ , deployCommand = "./script/deploy"
}
postContext :: Context String
Generated by cgit. See skreutz.com for my tech blog and contact information.