diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-04-12 10:31:48 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-04-12 10:31:48 +0200 |
commit | c364c4b0273e76cb13571878d1a4a2853a392b9b (patch) | |
tree | 0deb386ef2e380436a74ad9fcf5b023c999dfed7 /scripts/meta | |
parent | 583f9fa1018bb688323f2367e99c53bba9843f61 (diff) |
WIP transition to jekyll
Diffstat (limited to 'scripts/meta')
-rwxr-xr-x | scripts/meta | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/meta b/scripts/meta deleted file mode 100755 index f7a3f84..0000000 --- a/scripts/meta +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -tag_name=$1 -filename=$2 - -output=$(grep -Poh "^\[meta\]:\s+<$tag_name>\s+\(\K(.+)(?=\)$)" $filename) - -if [ "$tag_name" = "tags" ]; then - echo $output |\ - sed "s/,\s*/\n/g" |\ - sed -z '$ s/\n$//' |\ - jq --raw-input --slurp 'split("\n")' -else - if [ "$output" = "" ]; then - echo "" | jq --raw-input - else - echo $output |\ - sed -z '$ s/\n$//' |\ - jq --raw-input - fi -fi - |