Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
17
.bin/OLD/print_pdf
Executable file
17
.bin/OLD/print_pdf
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
_file="${1%%.*}"
|
||||
_ext="${1##*.}"
|
||||
_out="/tmp/print-$(pwgen -1).ps"
|
||||
|
||||
convert_pdf() {
|
||||
pdf2ps "$_file.$_ext" "$_out"
|
||||
}
|
||||
|
||||
case $_ext in
|
||||
[pP][dD][fF])
|
||||
convert_pdf; lpr $_out;
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -vf "$_out"
|
||||
Reference in New Issue
Block a user