diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-15 12:51:14 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-15 12:51:14 +0200 |
commit | 361ab306fbc8beb1732e1059ed0c093a2a03fb67 (patch) | |
tree | da152d15c0bdd29bf8153452a00f9ddfe4123bb5 /bin/ssg | |
parent | 6fa675b60cc15350bb5cca3e29e7023b5100f86d (diff) | |
download | rgoncalves.se-361ab306fbc8beb1732e1059ed0c093a2a03fb67.tar.gz |
refactor: move static site generator out of the repo
Diffstat (limited to 'bin/ssg')
-rwxr-xr-x | bin/ssg | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/bin/ssg b/bin/ssg deleted file mode 100755 index f8da7c6..0000000 --- a/bin/ssg +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -. bin/func - -set -xe - -media_branch="media" -src_files="$(__list_files ${src_dir})" -dirs="${media_dir} \ - ${src_dir} \ - ${tmp_dir} \ - ${out_dir}" - -# Ensure directories exist. -for dir in ${dirs}; do - [ ! -d "${dir}" ] && mkdir "${dir}" -done - -# Generate output files from sources. -for src_file in ${src_files}; do - __handle "${src_file}" -done - -# Copy images -if git rev-parse media; then - git restore --source=media --worktree "img" - mv "img" "out" -fi |