1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-23 01:02:15 -05:00

More ppa methods

This commit is contained in:
Travis Burtrum 2017-04-03 00:20:36 -04:00
parent 67ef50ee71
commit 316c491a77

10
ppa
View File

@ -128,6 +128,16 @@ build_changed() {
build $(git diff-tree --no-commit-id --name-status -r "$commit" | grep -v ^D | grep PKGBUILD$ | sed -e 's@/PKGBUILD$@@' -e 's@.*/@@' | tr '\n' ' ')
}
build_changed_deps() {
commit="$1"
[ "$commit" == "" ] && commit=HEAD
build_deps $(git diff-tree --no-commit-id --name-status -r "$commit" | grep -v ^D | grep PKGBUILD$ | sed -e 's@/PKGBUILD$@@' -e 's@.*/@@' | tr '\n' ' ')
}
reinstall() {
paclist $repo_name | cut -d' ' -f1 | xargs sudo pacman -S --noconfirm
}
if [ "$#" -gt 0 ]; then
[ -d "$src_dir" ] || mkdir -p "$src_dir"
[ -d "$pkg_dir" ] || mkdir -p "$pkg_dir"