Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. PKG_ROOTS=$(find -name Makefile | sed -e 's@./\(.*\)/Makefile@\1@')
  2. CHANGES=$(git diff --diff-filter=d --name-only origin/master)
  3.  
  4. for ROOT in $PKG_ROOTS; do
  5.         for CHANGE in $CHANGES; do
  6.                 if [[ "$CHANGE" == "$ROOT"* ]]; then
  7.                         PACKAGES+=$(echo $ROOT | sed -e 's@.*/@ @')
  8.                 fi
  9.         done
  10. done
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement