diff options
Diffstat (limited to 'aur.sh')
| -rwxr-xr-x | aur.sh | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +PACKAGES="opcut + python-hat-aio + python-hat-doit + python-hat-json + python-hat-util" + +cd $(dirname -- "$0") + +mkdir -p aur + +for PACKAGE in $PACKAGES; do + + echo -n "$PACKAGE... " + + if [ -d aur/$PACKAGE ]; then + git -C aur/$PACKAGE pull -q + else + git -C aur clone -q ssh://aur@aur.archlinux.org/$PACKAGE.git + fi + + for SRC in $(find $PACKAGE -type f -a -not -name .gitignore); do + if ! git check-ignore -q $SRC; then + cp $SRC aur/$SRC + fi + done + + (cd aur/$PACKAGE; makepkg --printsrcinfo > .SRCINFO) + + if git -C aur/$PACKAGE diff --quiet; then + echo "OK" + else + echo "CHANGED" + fi + +done |
