summaryrefslogtreecommitdiff
path: root/generateReadme.sh
blob: 1937d3844073198db00e7d9057abd6e21f965c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# generateReadme.sh: Regenerates the help section of the README.md using output from ./maim --help.

# Remove help section
sed -i '/^help$/,/^```$/d' README.md

# Add the help section again.
echo 'help' >> README.md
echo '----' >> README.md
echo 'Join us on irc at freenode in *#maim*.' >> README.md
echo '```text' >> README.md
echo "$(./maim --help)" >> README.md
echo '```' >> README.md