aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publish-raw40
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/publish-raw b/scripts/publish-raw
deleted file mode 100755
index cc05958..0000000
--- a/scripts/publish-raw
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-content_dir=${1:-content}
-public_dir=${2:-public}
-
-[ -d "$content_dir" ] || exit 0
-mkdir -p "$public_dir"
-
-find "$content_dir" -type f -print | while IFS= read -r source
-do
- relative=${source#"$content_dir"/}
-
- case "$relative" in
- updates/_index.md)
- # Updates is an aggregate index, not a published Markdown document.
- continue
- ;;
- journal/_index.md)
- target=$public_dir/journal/_index.md
- ;;
- journal/*/_index.md|journal/*/*/_index.md)
- target=$public_dir/$relative
- ;;
- journal/*/*/*/*)
- target=$public_dir/$relative
- ;;
- journal/*)
- # Only source files for published journal sections and entries are public.
- continue
- ;;
- *)
- target=$public_dir/$relative
- ;;
- esac
-
- mkdir -p "$(dirname "$target")"
- cp "$source" "$target"
-done