repo: get changed files

This commit is contained in:
Thomas Hobson 2021-03-14 16:12:28 +13:00
parent f1a74a0d68
commit 00dd38b83d
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ do
echo "Commit SHA: $pkg" echo "Commit SHA: $pkg"
echo "Changed files:" echo "Changed files:"
git diff-tree --no-commit-id --name-only -r $pkg git diff --name-only $pkg^1 $pkg
PACKAGES=$(git diff-tree --no-commit-id --name-only -r $pkg | awk -F/ '{ print $2 "-" $3 }' | sort -u) PACKAGES=$(git diff --name-only $pkg^1 $pkg | awk -F/ '{ print $2 "-" $3 }' | sort -u)
echo "Building packages: $PACKAGES" echo "Building packages: $PACKAGES"
for package in "$PACKAGES"; do for package in "$PACKAGES"; do
make -j16 $package.pkg.tar.gz make -j16 $package.pkg.tar.gz