config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 061b91c9072197fa708b818113b6c682ad1159ba
parent 5c7ec8444dd17791993a171f1839f30360340bd0
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sat, 27 Mar 2021 18:39:11 -0700

Add the mups script to view PostScript with mupdf(1)

Diffstat:
Alocal/bin/.local/bin/mups | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/local/bin/.local/bin/mups b/local/bin/.local/bin/mups @@ -0,0 +1,10 @@ +#!/bin/sh -e +# Copyright 2021 Jacob R. Edwards +# License: GPLv3 +# +# mups -- view PostScript with mupdf(1) + +tmp="$(mktemp -t mups-XXXXXXXXXX)" +trap "rm -f $tmp" 0 +ps2pdf - >"$tmp" +mupdf "$@" "$tmp"