change auto generate

This commit is contained in:
Denis Lehmann 2020-05-05 20:47:18 +02:00
parent 4753eca6d2
commit e830805af2
9 changed files with 24 additions and 17 deletions

View file

@ -115,6 +115,8 @@ Links**](./selfhosted.md).
- [**aria2**](https://aria2.github.io/) - [**aria2**](https://aria2.github.io/)
Lightweight multi-protocol & multi-source command-line download Lightweight multi-protocol & multi-source command-line download
utility utility
- [**curl**](https://curl.haxx.se/)
Command line tool and library for transferring data with URLs
- [**Mosh**](https://mosh.org/) - [**Mosh**](https://mosh.org/)
Remote terminal application that allows roaming, supports Remote terminal application that allows roaming, supports
intermittent connectivity, and provides intelligent local echo and intermittent connectivity, and provides intelligent local echo and

View file

@ -94,6 +94,9 @@ Nerdy
: Lightweight multi-protocol & multi-source command-line download : Lightweight multi-protocol & multi-source command-line download
utility utility
[**curl**](https://curl.haxx.se/)
: Command line tool and library for transferring data with URLs
[**Mosh**](https://mosh.org/) [**Mosh**](https://mosh.org/)
: Remote terminal application that allows roaming, supports : Remote terminal application that allows roaming, supports
intermittent connectivity, and provides intelligent local echo and intermittent connectivity, and provides intelligent local echo and

View file

@ -1,17 +1,19 @@
#!/bin/sh #!/bin/sh
# Cleanup files function generate {
pandoc header.md -o header.md HEADER=./$1/header.md
pandoc body.md -o body.md BODY=./$1/body.md
pandoc header_android.md -o header_android.md OUT=../$2.md
pandoc body_android.md -o body_android.md
pandoc header_selfhosted.md -o header_selfhosted.md
pandoc body_selfhosted.md -o body_selfhosted.md
# Generate README.md and android.md # Cleanup files
pandoc -H header.md --toc body.md -o ../README.md pandoc $HEADER -o $HEADER
pandoc -t gfm ../README.md -o ../README.md pandoc $BODY -o $BODY
pandoc -H header_android.md --toc body_android.md -o ../android.md
pandoc -t gfm ../android.md -o ../android.md # Generate output file
pandoc -H header_selfhosted.md --toc body_selfhosted.md -o ../selfhosted.md pandoc -H $HEADER --toc $BODY -o $OUT
pandoc -t gfm ../selfhosted.md -o ../selfhosted.md pandoc -t gfm $OUT -o $OUT
}
generate "default" "README"
generate "android" "android"
generate "selfhosted" "selfhosted"

View file

@ -1,4 +1,4 @@
Android Links Selfhosted Links
============= ================
This is a collection of nice open source software for your server. This is a collection of nice open source software for your server.

View file

@ -1,4 +1,4 @@
# Android Links # Selfhosted Links
This is a collection of nice open source software for your server. This is a collection of nice open source software for your server.