PKGBUILDs/pdfmerge/default/pdfmerge.sh

9 lines
187 B
Bash
Raw Permalink Normal View History

2016-03-27 23:42:38 +02:00
#!/bin/sh
if [[ $# == 0 ]]; then
echo "Usage: pdfmerge output input1 input2 ..."
else
output="$1"
shift 1
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$output" "$@"
fi