blob: 30a45958e5b1a0826fdccf2bbf2a2386d1595698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
set -e
#readonly REBUILD_PKGS=(
# libre/lxappearance-obconf-gtk3
#)
# rebuild/sign per autobuilder
#for pkg in ${REBUILD_PKGS[@]}
#do echo '==> Rebuilding ${pkg} ...'
# ~autobuilder/.local/bin/autobuild ${pkg}
#done
commit_msg_file="$@"
if [[ "$(cat ${commit_msg_file})" =~ ^\[([^/]*/[^/]*)\]: *autobuild$ ]]
then pkg=${BASH_REMATCH[1]}
if git ls-tree --name-only -r master | grep "${pkg}/PKGBUILD"
then echo '==> Rebuilding ${pkg} ...'
~autobuilder/.local/bin/autobuild ${pkg}
exit 1
fi
fi
|