diff options
author | EuAndreh <eu@euandre.org> | 2024-11-17 19:49:22 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-17 19:49:22 -0300 |
commit | dfa41b2af885e8b51327064d0789dd02f53f635a (patch) | |
tree | 02672eade66aa495a5644fdea0dd0571bca28acf /src/development/JEKYLL_COMPAT/copy-content.sh | |
parent | rm -rf v2/ (diff) | |
download | euandre.org-dfa41b2af885e8b51327064d0789dd02f53f635a.tar.gz euandre.org-dfa41b2af885e8b51327064d0789dd02f53f635a.tar.xz |
rm- rf src/development/
Diffstat (limited to 'src/development/JEKYLL_COMPAT/copy-content.sh')
-rwxr-xr-x | src/development/JEKYLL_COMPAT/copy-content.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/development/JEKYLL_COMPAT/copy-content.sh b/src/development/JEKYLL_COMPAT/copy-content.sh deleted file mode 100755 index 4857ac6..0000000 --- a/src/development/JEKYLL_COMPAT/copy-content.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -set -eu - -# JEKYLL_COMPAT: copy files while things under `src/content/` aren't the -# canonical source - -for f in _pastebins/*; do - NAME="$(basename "$f")" - DATE="$(echo "$NAME" | cut -d- -f-3 | tr '-' '/')" - FILENAME="$(echo "$NAME" | cut -d- -f4-)" - - DIR="src/content/pastebin/$DATE" - mkdir -p "$DIR" - - if [ ! -e "$DIR/$FILENAME" ]; then - cp "$f" "$DIR/$FILENAME" - fi -done |