Skip to content

Commit c595167

Browse files
Update ToC file updater script to accept an argument
1 parent 9f5d201 commit c595167

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#!/bin/bash
22

33
# Run this from the root directory of the repository:
4-
# ./.procedures/rebuild-and-run-TOC-generator.sh
4+
# ./.procedures/rebuild-and-run-TOC-generator.sh nextTag
5+
6+
# Capture the tag that gets passed in as an argument
7+
TAG=$1
58

69
# Change into projects directory
710
cd 22-Projects/
811

912
# Build the program
10-
spago bundle --main ToC.ReaderT.Main --to dist/table-of-contents/ghtoc.js
13+
spago bundle-app --main ToC.ReaderT.Main --to dist/table-of-contents/ghtoc.js
1114

1215
# Change directory to be at the root directory again.
1316
cd ../
1417

1518
# Then re-generate the ToC file
16-
echo "Now running program"
17-
node 22-Projects/dist/table-of-contents/ghtoc.js -r "." -o "./table-of-contents.md" --log-level "info"
19+
echo "Now regenerating the ToC file."
20+
node 22-Projects/dist/table-of-contents/ghtoc.js -r . -o ./table-of-contents.md --github-reference $TAG --skip-url-verification
1821
echo "Finished creating the ToC file."
19-
20-
# Copy and paste this code into terminal once above check passes
21-
# node 22-Projects/dist/table-of-contents/ghtoc.js -r "." -o "./table-of-contents.md" --github-reference "ps-0.12.x-v0.13.0" --skip-url-verification

0 commit comments

Comments
 (0)