functions.sh.lib 234 B

123456789101112131415
  1. # vim: ft=sh:
  2. # shellcheck shell=sh
  3. alias git_modified='git diff --cached --name-only --diff-filter=d'
  4. for_each_ebuild() {
  5. for f in $(git_modified); do
  6. case "${f}" in
  7. *.ebuild)
  8. EBUILD_FILE="${f}" "${@}"
  9. ;;
  10. esac
  11. done
  12. }