1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-24 17:42:19 -05:00
arch-ppa/rebuild_changed.sh

8 lines
273 B
Bash
Raw Normal View History

2017-01-20 10:44:07 -05:00
#!/bin/bash
script="./arch-ppa"
[ "$1" == '-d' ] && script="echo $script" && shift
$script rebuild aur $(comm -23 <(git status | grep -o 'src/[^/]*/PKGBUILD' | sed -e 's@^src/@@' -e 's@/PKGBUILD$@@' | sort | uniq) <(echo "$@" | tr ' ' '\n' | sort | uniq) | tr '\n' ' ')