blob: 59d76d37173bd778d3ec5c4388feaa1f04afcc05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
set -e
for pkg in "$@"; do
export MAINTAINER="Florian Pritz <bluewind@xinu.at>"
targets=(~/arch/{community,extra})
target_community=~/arch/community
found_pkg=0
genpkg "$pkg"
for target in "${targets[@]}"; do
if [[ -f "$target/$pkg/trunk/PKGBUILD" ]]; then
found_pkg=1
vimdiff "$HOME/pkg/dest/$pkg/PKGBUILD" "$target/$pkg/trunk/PKGBUILD"
fi
done
if ((!found_pkg)); then
mkdir -p "$target/$pkg/"{trunk,repos}
cp "$HOME/pkg/dest/$pkg/PKGBUILD" "$target_community/$pkg/trunk/"
fi
done
|