commit 75a58773264c02d2cd5b213b5e96282edc82126c parent 856b3ac96bb2a5d9d1e41eb07de50a18486f0353 Author: Ashymad <czilukim@o2.pl> Date: Sat, 24 Feb 2018 00:27:53 +0100 Add aur vcsync Diffstat:
| A | .config/fish/functions/aur-vcsync.fish | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/.config/fish/functions/aur-vcsync.fish b/.config/fish/functions/aur-vcsync.fish @@ -0,0 +1,23 @@ +function aur-vcsync + set vcs_list git hg cvs svn bzr + echo -n "" > /tmp/vcs.tmp + set_color -o + echo ==> Checking newest commit of repositories... + for vcs in $vcs_list + set repos ~/.cache/aurutils/sync/*-$vcs + for repo in $repos + aur srcver $repo >> /tmp/vcs.tmp + end + end + echo ==> Comparing to locally installed versions... + set updates (aur vercmp -p /tmp/vcs.tmp -d custom-aur) + for update in $updates + echo Updating $update... + aur sync --no-ver \ + --repo custom-aur \ + (echo $update \ + | awk '{print $1}' \ + | sed 's/:$//') + end +end +