1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 03:21:10 +01:00

chore(packages): reorganize scripts

This commit is contained in:
Kierán Meinhardt
2020-04-09 16:56:47 +02:00
parent 4abc0f4221
commit c6c621baf1
26 changed files with 230 additions and 189 deletions

12
packages/scripts/man-pdf.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
if [ "$#" -eq 1 ]; then
man_entry="$1"
elif [ $# -eq 2 ]; then
man_page="$1"
man_entry="$2"
else
echo >/dev/stderr "Usage: $0 [MAN-PAGE] ENTRY"
exit 1
fi
man "${man_page:-}" "$man_entry" | ps2pdf - "$man_entry.pdf"