mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-12-23 04:29:23 +08:00
change: update hook for linux-phicomm-n1
This commit is contained in:
parent
43ead185d6
commit
8a72d20557
2 changed files with 11 additions and 3 deletions
|
@ -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'
|
||||
|
|
12
linux-phicomm-n1/buildbot.update.sh → linux-phicomm-n1/buildbot.update.d/update.sh
Normal file → Executable file
12
linux-phicomm-n1/buildbot.update.sh → linux-phicomm-n1/buildbot.update.d/update.sh
Normal file → Executable 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
|
Loading…
Reference in a new issue