summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex4musicians/crop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex4musicians/crop.sh')
-rw-r--r--Master/texmf-dist/doc/latex/latex4musicians/crop.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex4musicians/crop.sh b/Master/texmf-dist/doc/latex/latex4musicians/crop.sh
new file mode 100644
index 00000000000..949ce04dac7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex4musicians/crop.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ $# = 0 ]; then
+ echo "Usage: $0 <file.pdf>"
+ exit 1
+fi
+
+NAME=$(basename $1 .pdf)
+PDF=$NAME.pdf
+pdfcrop $PDF
+/bin/mv -f $NAME-crop.pdf $PDF