change: update hook for linux-phicomm-n1

This commit is contained in:
Archlinux-Jerry Build Bot 2019-10-23 21:26:45 +08:00
parent 43ead185d6
commit 8a72d20557
2 changed files with 11 additions and 3 deletions

View file

@ -7,7 +7,7 @@ priority:
extra:
- update:
- rm -rf 'src'
- bash buildbot.update.sh
- bash buildbot.update.d/update.sh
- failure:
- rm -rf 'src_fail'
- mv 'src' 'src_fail'

View file

@ -1,8 +1,16 @@
#!/bin/bash
# buildbot update hook
# buildbot update hook for kernel packages
set -e -o pipefail
assertPkgname() {
if [[ "$(basename $(pwd))" != "$PKGNAME" ]]; then
echo "Please run this script inside the $PKGNAME dir."
exit 1
fi
}
## This section does essential preparations
PKGNAME='linux-phicomm-n1' && assertPkgname
PKGBUILD='PKGBUILD'
git pull --ff-only
git checkout $PKGBUILD
@ -54,5 +62,5 @@ pkgrel=$(source $PKGBUILD; echo $pkgrel)
[ "$pkgrel" != '1' ] && echo "unexpected pkgrel: ${pkgrel}" >&2 && exit 1
updpkgsums
git add $PKGBUILD
git commit -m "autoupdate: linux-phicomm-n1 to ${pkgver}"
git commit -m "autoupdate: ${PKGNAME} to ${pkgver}"
git push