blob: 621e6ee0a48016299d109918f45e95f076308520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/bash
set -euo pipefail
pkg=$1
targets=(~/arch/pkgs)
found_pkg=0
for target in "${targets[@]}"; do
if [[ -f "$target/$pkg/PKGBUILD" ]]; then
found_pkg=1
cd "$target/$pkg"
git pull --rebase --autostash
break
fi
done
if ((!found_pkg)); then
cd ~/arch/pkgs
pkgctl repo clone "$pkg"
cd "$pkg"
#echo "Package not found. Creating not supported here"
#exit 1
fi
#case "${target##*/}" in
#extra) relcmd=(extrapkg);;
#community) relcmd=(communitypkg);;
#*) echo "Unable to determine release command for target '$target'"; exit 1; ;;
#esac
gen-perl-pkg "$pkg"
#ch update 64
#ch cbuild 64
pkgctl build
echo "About to release"
read -r -p "Hit enter to release or ^C to abort"
#"${relcmd[@]}" "upstream update"
pkgctl release --message "upstream update"
|