crop-logos.sh 238 Bytes
Newer Older
Florian Walch's avatar
Florian Walch committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh

command -v pdfcrop >/dev/null 2>&1 || {
  echo >&2 "pdfcrop executable not found in PATH:"
  echo >&2 "${PATH}"
  exit 1
}

LOGOS=(tum faculty)

for logo in ${LOGOS[@]}
do
  pdfcrop "logos/${logo}.pdf" "logos/${logo}.pdf"
done