mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 22:10:40 +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:
|
extra:
|
||||||
- update:
|
- update:
|
||||||
- rm -rf 'src'
|
- rm -rf 'src'
|
||||||
- bash buildbot.update.sh
|
- bash buildbot.update.d/update.sh
|
||||||
- failure:
|
- failure:
|
||||||
- rm -rf 'src_fail'
|
- rm -rf 'src_fail'
|
||||||
- mv 'src' '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
|
#!/bin/bash
|
||||||
# buildbot update hook
|
# buildbot update hook for kernel packages
|
||||||
set -e -o pipefail
|
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
|
## This section does essential preparations
|
||||||
|
PKGNAME='linux-phicomm-n1' && assertPkgname
|
||||||
PKGBUILD='PKGBUILD'
|
PKGBUILD='PKGBUILD'
|
||||||
git pull --ff-only
|
git pull --ff-only
|
||||||
git checkout $PKGBUILD
|
git checkout $PKGBUILD
|
||||||
|
@ -54,5 +62,5 @@ pkgrel=$(source $PKGBUILD; echo $pkgrel)
|
||||||
[ "$pkgrel" != '1' ] && echo "unexpected pkgrel: ${pkgrel}" >&2 && exit 1
|
[ "$pkgrel" != '1' ] && echo "unexpected pkgrel: ${pkgrel}" >&2 && exit 1
|
||||||
updpkgsums
|
updpkgsums
|
||||||
git add $PKGBUILD
|
git add $PKGBUILD
|
||||||
git commit -m "autoupdate: linux-phicomm-n1 to ${pkgver}"
|
git commit -m "autoupdate: ${PKGNAME} to ${pkgver}"
|
||||||
git push
|
git push
|
Loading…
Reference in a new issue