aboutsummaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
Diffstat (limited to 'aux')
-rwxr-xr-xaux/workflow/CHANGELOG.sh3
-rwxr-xr-xaux/workflow/README.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/aux/workflow/CHANGELOG.sh b/aux/workflow/CHANGELOG.sh
index 829cf5f..371a67b 100755
--- a/aux/workflow/CHANGELOG.sh
+++ b/aux/workflow/CHANGELOG.sh
@@ -4,6 +4,7 @@ set -eu
mkdir -p public
PROJECT_UC="$1"
+CHANGELOG="${2:-CHANGELOG.md}"
pandoc --toc \
--highlight-style pygments \
@@ -13,4 +14,4 @@ pandoc --toc \
--metadata lang=en \
-r markdown \
-w html \
- < CHANGELOG.md > public/CHANGELOG.html
+ < "$CHANGELOG" > public/CHANGELOG.html
diff --git a/aux/workflow/README.sh b/aux/workflow/README.sh
index 49b1e8d..f9e7f52 100755
--- a/aux/workflow/README.sh
+++ b/aux/workflow/README.sh
@@ -5,6 +5,7 @@ mkdir -p public
PROJECT_UC="$1"
PROJECT="$2"
+README="${3:-README.md}"
RELEASES_LIST="$(mktemp)"
for version in $(git tag); do
@@ -17,7 +18,7 @@ if [ -s "$RELEASES_LIST" ]; then
cat "$RELEASES_LIST" >> "$RELEASES"
fi
-cat README.md "$RELEASES" | \
+cat "$README" "$RELEASES" | \
pandoc --toc \
--highlight-style pygments \
--toc-depth=2 \