added README generator :)

This commit is contained in:
alterNERDtive 2019-11-12 10:31:51 +01:00
parent d714231b25
commit 77707c1d78
3 changed files with 50 additions and 3 deletions

View file

@ -1,5 +1,9 @@
all: exe
all: docs
docs:
bash generate_docs.sh
# requires a windows box
exe:
pyinstaller.exe -y edsm-getnearest.py
pyinstaller.exe -y explorationtools.py

43
generate_docs.sh Normal file
View file

@ -0,0 +1,43 @@
#!/usr/bin/env bash
cat > README.md << EOF
# A collection of useful scripts around Elite Dangerous #
## edsm-getnearest.py ##
\`\`\`
EOF
./edsm-getnearest.py -h >> README.md
cat >> README.md << EOF
\`\`\`
## explorationtools.py ##
\`\`\`
EOF
./explorationtools.py -h >> README.md
cat >> README.md << EOF
\`\`\`
\`\`\`
EOF
./explorationtools.py bodycount -h >> README.md
cat >> README.md << EOF
\`\`\`
\`\`\`
EOF
./explorationtools.py distancebetween -h >> README.md
cat >> README.md << EOF
\`\`\`
EOF