Skip to content

Commit

Permalink
Fix creation of stripped-down README.md on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Mar 21, 2018
1 parent 2bbc2be commit 7b64d95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ sed -i "s/# plantuml.*/# plantuml/" README.md
pandoc README.md --pdf-engine=lualatex -o plantuml.pdf

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

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

0 comments on commit 7b64d95

Please sign in to comment.