summaryrefslogtreecommitdiffstats
path: root/.local/bin/spliff
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/spliff')
-rwxr-xr-x.local/bin/spliff6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/spliff b/.local/bin/spliff
new file mode 100755
index 0000000..3767bac
--- /dev/null
+++ b/.local/bin/spliff
@@ -0,0 +1,6 @@
1#!/usr/bin/env zsh
2
3PDF=$1
4OUTPUT="${PDF:r}_spliff.pdf"
5N=`qpdf --show-npages $1`
6qpdf --collate --empty --pages $1 1-$(((N+1)/2)) $1 $(((N+1)/2 + 1))-$N -- $OUTPUT