From 361ab306fbc8beb1732e1059ed0c093a2a03fb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 15 May 2024 12:51:14 +0200 Subject: refactor: move static site generator out of the repo --- bin/ssg | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 bin/ssg (limited to 'bin/ssg') 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 -- cgit v1.2.3