From 0dbca7d4a8a71e0f27f28ea7fee6e8071a4a8d89 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sun, 1 Jun 2025 06:04:11 -0400 Subject: Remove binary assets from repository `git-annex' is neat, but overkill for this use-case. All I want is to avoid checking binary files into source control; I don't necessarily care about tracking changes on those binary files. You can get all the assets you need from 'https://jakob.space/annex.tar.gz' and extract it over the repository root. --- bundle-static-assets.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bundle-static-assets.sh (limited to 'bundle-static-assets.sh') diff --git a/bundle-static-assets.sh b/bundle-static-assets.sh new file mode 100644 index 0000000..a5d5c5a --- /dev/null +++ b/bundle-static-assets.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -euo pipefail + +function bundle_static_assets { + STAMP="$(date +'%Y-%m-%d')" + ASSETS="$(find . -not -path './site/*' -a \( -name '*.jpg' -o -name '*.png' \) -print)" + echo "$ASSETS" | xargs -d'\n' tar -cvzf "./site/annex.tar.gz" +} + +if ! [ -d "./site/" ]; then + echo "./site/ does exist." + exit 1 +fi + +bundle_static_assets -- cgit v1.3