diff options
author | Yigit Sever | 2019-12-30 15:31:57 +0300 |
---|---|---|
committer | Yigit Sever | 2019-12-30 15:31:57 +0300 |
commit | 22f4404592585368ad250cdbead655c498c10509 (patch) | |
tree | 01da74c8aec052f3a063817cae13b612c20f9faf /bin/spliff | |
parent | f38cd14d8157eb60aa2548c1cb057ef60a26d9cc (diff) | |
download | dotfiles-22f4404592585368ad250cdbead655c498c10509.tar.gz dotfiles-22f4404592585368ad250cdbead655c498c10509.tar.bz2 dotfiles-22f4404592585368ad250cdbead655c498c10509.zip |
Track new spliff
Diffstat (limited to 'bin/spliff')
-rwxr-xr-x | bin/spliff | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/spliff b/bin/spliff new file mode 100755 index 0000000..3767bac --- /dev/null +++ b/bin/spliff | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/usr/bin/env zsh | ||
2 | |||
3 | PDF=$1 | ||
4 | OUTPUT="${PDF:r}_spliff.pdf" | ||
5 | N=`qpdf --show-npages $1` | ||
6 | qpdf --collate --empty --pages $1 1-$(((N+1)/2)) $1 $(((N+1)/2 + 1))-$N -- $OUTPUT | ||