mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
59 lines
3.2 KiB
Bash
Executable file
59 lines
3.2 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
|
|
# cp XXquickemu.1-14-AllquickemuOptions-02coggged.md quickemu.1-14-AllquickemuOptions-02coggged.md
|
|
|
|
../quickget list_csv | awk -F"," '{print "* `" $2 "` ("$1")" }' |grep -e buntu |sort -u >quickemu.1-07-Ubuntus02-generated.md
|
|
../quickget list_csv | awk -F"," '{print "* `" $2 "` ("$1")" }' |grep -v -e 'Display Name' -e windows -e macos -e buntu |sort -u >quickemu.1-08-OtherOperatingSystems02-generated.md
|
|
|
|
echo quickemu.1-* > quickemu.lst
|
|
echo quickget.1-00-header.md quickemu.1-0[7-9]* quickemu.1-1[0-3]* quickget.1-09-footer.md > quickget.lst
|
|
|
|
## Significantly reduces weight in Readme
|
|
# echo quickemu.1-0[4-5]* README-06-Install.md quickemu.1-0[6-9]* \
|
|
# quickemu.1-1[0-3]* quickemu_conf.1-01-spiceheadless.md README-135-accessibility.md README-135-confoptions.md quickemu.1-1[4-9]* quickemu.1-2*
|
|
echo README-0[1-5]* > README.lst
|
|
#
|
|
echo quickemu_conf.1-00-hdr.md README-135-confoptions.md quickemu_conf.1-05-footer.md > quickemu_conf.lst
|
|
# update date front-matter
|
|
|
|
sed -i "s/^date: .*/date: $(date +'%B %e, %Y')/" \
|
|
quickemu.1-01-head.md \
|
|
quickemu_conf.1-00-hdr.md \
|
|
quickget.1-00-header.md
|
|
|
|
## strip the cog for docs and manuals
|
|
#cog has to run using the right quickemu
|
|
ln -sf ../quickemu ../quickget .
|
|
|
|
cog -e -d -o quickemu.1-08-OtherOperatingSystems01.md XXquickemu.1-08-OtherOperatingSystems01.md
|
|
cog -e -d -o quickemu.1-14-AllquickemuOptions-02coggged.md XXquickemu.1-14-AllquickemuOptions-02coggged.md
|
|
|
|
#pandoc options to match wimpy's markdown style preferences
|
|
|
|
pandoc --wrap=preserve --columns=120 -s $(cat README.lst) -f markdown-smart -t gfm > README_main.md
|
|
#| sed 's/`<kbd>`{=html}/<kbd>/; s/`<\/kbd>`{=html}/<\/kbd>/; s/```{=html}//' > README_main.md
|
|
# the above no longer needed as pandoc now handles kbd and code blocks correctly if output is gfm
|
|
#
|
|
cat README-00-hdr.md README_main.md >../README.md
|
|
# ( cd .. ; cog -r README.md )
|
|
# readme no longer has dynamic content
|
|
|
|
|
|
|
|
# pandoc -s $(cat quickemu_conf.lst) -f markdown -t markdown | sed 's/`<kbd>`{=html}/<kbd>/; s/`<\/kbd>`{=html}/<\/kbd>/; s/```{=html}//' > ../docs/quickemu_conf.1.md
|
|
# pandoc -s $(cat quickemu.lst) -f markdown -t markdown | sed 's/`<kbd>`{=html}/<kbd>/; s/`<\/kbd>`{=html}/<\/kbd>/; s/```{=html}//' > ../docs/quickemu.1.md
|
|
# pandoc -s $(cat quickget.lst) -f markdown -t markdown | sed 's/`<kbd>`{=html}/<kbd>/; s/`<\/kbd>`{=html}/<\/kbd>/; s/```{=html}//' > ../docs/quickget.1.md
|
|
# #
|
|
# pandoc -s ../docs/quickemu.1.md -f markdown -t man -o ../docs/quickemu.1
|
|
# pandoc -s ../docs/quickget.1.md -f markdown -t man -o ../docs/quickget.1
|
|
# pandoc -s ../docs/quickemu_conf.1.md -f markdown -t man -o ../docs/quickemu_conf.1
|
|
|
|
pandoc -s $(cat quickemu_conf.lst) -f markdown-smart -t gfm+definition_lists > ../docs/quickemu_conf.1.md
|
|
pandoc -s $(cat quickemu.lst) -f markdown-smart -t gfm+definition_lists > ../docs/quickemu.1.md
|
|
pandoc -s $(cat quickget.lst) -f markdown-smart -t gfm+definition_lists > ../docs/quickget.1.md
|
|
#
|
|
pandoc -s ../docs/quickemu.1.md -f gfm+definition_lists -t man -o ../docs/quickemu.1
|
|
pandoc -s ../docs/quickget.1.md -f gfm+definition_lists -t man -o ../docs/quickget.1
|
|
pandoc -s ../docs/quickemu_conf.1.md -f gfm+definition_lists -t man -o ../docs/quickemu_conf.1
|
|
|