| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | if [scip-shell system . . `[`. $# = 0 ]; then |
| 4 | echoscip-shell system . . echo. "Usage: $0 <file.pdf>" |
| 5 | exit 1 |
| 6 | fi |
| 7 | |
| 8 | NAME=$(basenamescip-shell system . . basename. $1 .pdf) |
| 9 | PDF=$NAME.pdf |
| 10 | shscip-shell system . . sh. ./pdfcrop.sh $PDF |
| 11 | /bin/mvscip-shell filesystem . . `/bin/mv`. -f $NAME-crop.pdf $PDF |