Use a pre-build script to generate usage.h from the README.md

Use a generated header from README.md
Finalise git ignore file
This commit is contained in:
mdiluzio 2014-12-20 15:35:16 +00:00
parent a7bc45497a
commit 71d0084908
5 changed files with 35 additions and 66 deletions
source/ttrts

View file

@ -2,7 +2,7 @@
ttrts - Tiny Terminal RTS
## SYNOPSYS
ttrts [OPTIONS...] MAPFILE
ttrts MAPFILE
## DESCRIPTION
ttrts is a tiny terminal based RTS where that uses text
@ -50,8 +50,6 @@
...
### Orders
F - Move unit forward one space
L/R - Rotate unit left or right
A - Attack row in front of unit
`$ cat README.md | sed 's/^#* //g' | sed 's/\t/\\t/g' | sed ':a;N;$!ba;s/\n/\\n\n/g' | sed 's/^/"/' | sed 's/$/"/' | sed '$ d' > usage.h # To convert this file to c++`
F - move unit [F]orward one space
L/R - rotate unit [L]eft or [R]ight
A - [A]ttack in straight line in front of unit