summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex4musicians/crop.sh
blob: 80dac1ac4373fdbabc0db1b570ca69e843123bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ $# = 0 ]; then
  echo "Usage: $0 <file.pdf>"
  exit 1
fi

NAME=$(basename $1 .pdf)
PDF=$NAME.pdf
sh ./pdfcrop.sh $PDF
/bin/mv -f $NAME-crop.pdf $PDF