EAPI.sh 294 B

12345678910111213141516
  1. #!/bin/sh --
  2. set -ue
  3. self="$(readlink -m "${0}")"
  4. . "${self%/*}/functions.sh.lib"
  5. CURRENT_EAPI=8
  6. check_EAPI() {
  7. sed -n "/^EAPI=/{/=${CURRENT_EAPI}\$/!q1}" <"${EBUILD_FILE}" || {
  8. echo "${EBUILD_FILE}: ERROR: should use 'EAPI=${CURRENT_EAPI}'" 1>&2
  9. exit 1
  10. }
  11. }
  12. for_each_ebuild check_EAPI