Skip to content

Commit 7b64d95

Browse files
committed
Fix creation of stripped-down README.md on CircleCI
1 parent 2bbc2be commit 7b64d95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ sed -i "s/# plantuml.*/# plantuml/" README.md
66
pandoc README.md --pdf-engine=lualatex -o plantuml.pdf
77

88
# Keep first paragraph of README.md only
9-
# hint for multiline matching from https://unix.stackexchange.com/a/369899/18033
10-
cat README.md | awk 1 ORS=__ABC__ | sed -e "s/__ABC__## Preconditions.*//" | awk 1 RS=__ABC__ > README.md
9+
# Hint for multiline matching from https://unix.stackexchange.com/a/369899/18033
10+
# We have to use tmp.md, because of file locking on CircleCI
11+
cat README.md | awk 1 ORS=__ABC__ | sed -e "s/__ABC__## Preconditions.*//" | awk 1 RS=__ABC__ > tmp.md && mv tmp.md README.md
1112

1213
# Prepare for CTAN
1314
ctanify --notds plantuml.sty plantuml.lua plantuml.pdf README.md CHANGELOG.md "example-*.tex"

0 commit comments

Comments
 (0)