summaryrefslogtreecommitdiff
path: root/pdfcrop.bzl
diff options
context:
space:
mode:
authorMatthew Sotoudeh <masotoudeh@ucdavis.edu>2020-10-13 20:17:39 -0700
committerGitHub <noreply@github.com>2020-10-13 20:17:39 -0700
commita7897766064a9a97630feef241d83fc29962f4cb (patch)
tree5506be55191d7de9478a0655e752799321f84905 /pdfcrop.bzl
parentced6dac36188c845d7d06e5768e484b4b774d028 (diff)
Use PDFCROP from TeXLive (#9)
We previously had it download a separate copy of the pdfcrop script from CTAN, which is problematic because we check checksums and CTAN doesn't guarantee a particular version. This just uses the pdfcrop script that TeXLive-full already comes with.
Diffstat (limited to 'pdfcrop.bzl')
-rw-r--r--pdfcrop.bzl8
1 files changed, 1 insertions, 7 deletions
diff --git a/pdfcrop.bzl b/pdfcrop.bzl
index b463f98..ed6bb81 100644
--- a/pdfcrop.bzl
+++ b/pdfcrop.bzl
@@ -9,14 +9,12 @@ def _pdf_crop_impl(ctx):
use_default_shell_env = True,
arguments = [
ctx.files._pdf_crop_wrapper[0].path,
- ctx.files._pdf_crop_script[0].path,
texlive_path,
uncropped.path,
ctx.outputs.output.path,
],
inputs = depset(
- direct = (ctx.files._pdf_crop_script + ctx.files._pdf_crop_wrapper +
- [uncropped]),
+ direct = (ctx.files._pdf_crop_wrapper + [uncropped]),
),
outputs = [ctx.outputs.output],
)
@@ -31,10 +29,6 @@ _pdf_crop = rule(
allow_files = True,
default = "@bazel_latex//:pdfcrop.sh",
),
- "_pdf_crop_script": attr.label(
- allow_files = True,
- default = "@pdfcrop//:pdfcrop.pl",
- ),
},
implementation = _pdf_crop_impl,
)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback