From 10bccae2bef473477de45e95e78828a59db82b0f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 11 Jun 2024 15:05:08 +0100 Subject: Fix: make sure the archive folder has some basic links --- ChangeLog.md | 5 +++++ bin/archive | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index fc51527..583d682 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,11 @@ ## v0.1.4 - unreleased +### Fixes + +* [x] Make sure the archive folder has some basic + links. + ### Features * [x] Scaffolding to support a "Recent changes" diff --git a/bin/archive b/bin/archive index ef77b9d..4b50501 100755 --- a/bin/archive +++ b/bin/archive @@ -23,6 +23,17 @@ fi # Make sure the archive folder exist mkdir -p $ARCHIVE +# Make sure the archive has some basic links +# This allows preservation of symbolic links for each archive version. +( + cd $ARCHIVE &> /dev/null + + ln -sf . archive + for item in slides vendor images LICENSE; do + ln -sf ../$item + done +) + # Check for previous build if [ ! -e "$REVFILE" ]; then echo "# $BASENAME: skipping: revision file not found" -- cgit v1.2.3