]> git.armaanb.net Git - lightcards-http.git/commitdiff
Rm the manpages from within the for loop
authorArmaan Bhojwani <me@armaanb.net>
Mon, 15 Feb 2021 15:22:32 +0000 (10:22 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 15 Feb 2021 15:24:46 +0000 (10:24 -0500)
.gitignore
convert

index ca441ef1b0915b66fba1f5f994a29618614d1e26..2ce405f9f2c0ce27a23caac9631d2d75dcb8dde5 100644 (file)
@@ -1 +1,2 @@
 *.min.*
+index.html
diff --git a/convert b/convert
index 23c9457590f4a8aad76c6cc261d2fc0574e182a1..88ec1d2261b998351c044e26610b8ad7f0c61238 100755 (executable)
--- a/convert
+++ b/convert
@@ -5,10 +5,9 @@ curl -O https://git.sr.ht/~armaan/lightcards/blob/main/man/lightcards-config.5
 
 find . -type f -name 'lightcards**' -not -name '*min*' | \
        while read i; do
-               groff -mandoc -Thtml ${i} > ${i}.html
+               groff -mandoc -T html ${i} > ${i}.html
                minify ${i}.html > ${i}.min.html
-               rm ${i}.html
+               rm ${i}.html ${i}
        done
 
 minify index-raw.html > index.html
-rm lightcards.1 lightcards-config.5