]> git.armaanb.net Git - lightcards.git/blobdiff - contrib/manconvert
Remove CursesError exception
[lightcards.git] / contrib / manconvert
index 4fad1cbb0bcda73228e550c2bc84695e273a8a50..8c4afbfd28466116e399b19cb024a2e3dcaed737 100755 (executable)
@@ -1,2 +1,7 @@
 #!/usr/bin/env sh
-pandoc $1 -s -t man -o $(echo $1 | cut -d '.' -f -2)
+find man/*.md | \
+while read i; do
+  base=$(echo ${i} | cut -d '.' -f -2)
+  pandoc ${i} -s -t man -o ${base}
+  sed -i "s/VERSION_HERE/$(python3 -m lightcards -v)/g" ${base}
+done