summaryrefslogtreecommitdiff
path: root/localpdfpreflight
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-02-05 18:56:43 +0100
committerJonas Smedegaard <dr@jones.dk>2014-02-05 18:56:43 +0100
commit306e34970a7e97e31da1fa8c29c0dfc97755ce65 (patch)
treeaf66fab5bfe33426b976be165fde03e0b6ac4e9a /localpdfpreflight
parentc02ea76fcf5b57c826689bf60c9aa89e4e02037c (diff)
Add new script localpdfpreflight.
Diffstat (limited to 'localpdfpreflight')
-rwxr-xr-xlocalpdfpreflight30
1 files changed, 30 insertions, 0 deletions
diff --git a/localpdfpreflight b/localpdfpreflight
new file mode 100755
index 0000000..146e523
--- /dev/null
+++ b/localpdfpreflight
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# /usr/local/bin/localpdfpreflight
+# Copyright 2014 Jonas Smedegaard <dr@jones.dk>
+#
+# Examine use of color
+#
+
+set -eu
+
+PRG="$(basename "$0")"
+
+showhelp() {
+ cat <<EOF
+Usage: $PRG INFILE
+
+EOF
+}
+
+exit1() {
+ echo >&2 "ERROR: $1"
+ exit 1
+}
+
+if [ $# -eq 0 ]; then
+ showhelp
+ exit1 "Input file missing"
+fi
+
+gs -dSAFER -dNOPAUSE -dBATCH -o- -sDEVICE=inkcov -- "$1"