Skip to content

Commit

Permalink
update method for archiving editions so links to articles can be perm…
Browse files Browse the repository at this point in the history
…anent
  • Loading branch information
marionbarker committed Dec 18, 2023
1 parent 864b109 commit 9a6323e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions finalize-new-edition.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#! /bin/bash
# File: finalize-new-edition.sh
# execute this script to update from index.md to edition copy
# This is run after prep-new-edition as many times as needed to
# capture any updates to current version
# Permanent links to news should come from the copy in the
# edition folder
#
FOLDER_LABEL="docs/edition"
EDITION_LABEL="$(ls -rt "${FOLDER_LABEL}" | tail -1)"
# echo "EDITION_LABEL is ${EDITION_LABEL}"
EDITION_FILE="${FOLDER_LABEL}/${EDITION_LABEL}"
# echo "EDITION_FILE is ${EDITION_FILE}"
cp -p "docs/index.md" "${EDITION_FILE}"
# if there has been a change then git status will show it
# a human will decide whether to add a commit
git status

0 comments on commit 9a6323e

Please sign in to comment.