aboutsummarylogtreecommitdiffstats
path: root/svgo-exec.sh.in
blob: b4a7e4ed8b8a58418939a1034a8f8d53c642b95f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/bash
#
#   svgo.sh - Confirm presence of svgo executable
#

[[ -n "$LIBMAKEPKG_EXECUTABLE_SVGO_SH" ]] && return
LIBMAKEPKG_EXECUTABLE_SVGO_SH=1

LIBRARY=${LIBRARY:-'@libmakepkgdir@'}

source "$LIBRARY/util/option.sh"

executable_functions+=('executable_svgo')

executable_svgo() {
  if check_option "svgo" "y"; then
    if ! type -p svgo >/dev/null; then
      error "$(gettext "Cannot find the %s binary required for optimizing SVG image files.")" "svgo"
      ret=1
    fi
  fi
}