upgpkg: controller v0.3.5
upgpkg: controller-testing v0.3.5 add: auto-commit in upgpkg.sh
This commit is contained in:
parent
b7aebc75f2
commit
2534eb239e
3 changed files with 28 additions and 29 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
||||||
pkgname=emgauwa-controller-testing
|
pkgname=emgauwa-controller-testing
|
||||||
pkgver=0.3.4
|
pkgver=0.3.5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc=""
|
pkgdesc=""
|
||||||
|
@ -19,7 +19,7 @@ source=("https://git.serguzim.me/emgauwa/controller/archive/testing-v$pkgver.tar
|
||||||
"emgauwa-controller-testing.service"
|
"emgauwa-controller-testing.service"
|
||||||
"emgauwa-controller-testing.sysusers"
|
"emgauwa-controller-testing.sysusers"
|
||||||
"emgauwa-controller-testing.tmpfiles")
|
"emgauwa-controller-testing.tmpfiles")
|
||||||
sha256sums=('f4787b25bcae82421b46b9661d4e957b31613c1acad819fcbd6c9664ae42b539'
|
sha256sums=('af944fea87d0ecb3a4f454c966b2292fddd2d75985e2ed3cda69ba923f9e448a'
|
||||||
'5bfbe580ef1a373e3c025f28f3de591ba7ce57c4aba20bd1cc62555043d7bd13'
|
'5bfbe580ef1a373e3c025f28f3de591ba7ce57c4aba20bd1cc62555043d7bd13'
|
||||||
'0bbc44d680be2011800c553ae863663148be0820f08349993578c88e9a23b143'
|
'0bbc44d680be2011800c553ae863663148be0820f08349993578c88e9a23b143'
|
||||||
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
||||||
pkgname=emgauwa-controller
|
pkgname=emgauwa-controller
|
||||||
pkgver=0.3.4
|
pkgver=0.3.5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc=""
|
pkgdesc=""
|
||||||
|
@ -19,7 +19,7 @@ source=("https://git.serguzim.me/emgauwa/controller/archive/v$pkgver.tar.gz"
|
||||||
"emgauwa-controller.service"
|
"emgauwa-controller.service"
|
||||||
"emgauwa-controller.sysusers"
|
"emgauwa-controller.sysusers"
|
||||||
"emgauwa-controller.tmpfiles")
|
"emgauwa-controller.tmpfiles")
|
||||||
sha256sums=('f4787b25bcae82421b46b9661d4e957b31613c1acad819fcbd6c9664ae42b539'
|
sha256sums=('af944fea87d0ecb3a4f454c966b2292fddd2d75985e2ed3cda69ba923f9e448a'
|
||||||
'7d886240280705c26d64dcda6eafd372e8f8e4a17cc85502d788e9195ad8418f'
|
'7d886240280705c26d64dcda6eafd372e8f8e4a17cc85502d788e9195ad8418f'
|
||||||
'8ece4b409d5550cdae23591217e440d8599ebf2175f2a91574c0b069314879a0'
|
'8ece4b409d5550cdae23591217e440d8599ebf2175f2a91574c0b069314879a0'
|
||||||
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
||||||
|
|
43
upgpkg.sh
43
upgpkg.sh
|
@ -21,32 +21,31 @@ function get_latest_version()
|
||||||
echo $latest_version
|
echo $latest_version
|
||||||
}
|
}
|
||||||
|
|
||||||
cd core
|
commit_message=""
|
||||||
latest_version=$(get_latest_version core)
|
|
||||||
sed -i "s/pkgver=.*$/pkgver=$latest_version/" PKGBUILD
|
|
||||||
updpkgsums
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd core-testing
|
function upgrade_package()
|
||||||
latest_version=$(get_latest_version core testing)
|
{
|
||||||
sed -i "s/pkgver=.*$/pkgver=$latest_version/" PKGBUILD
|
cd $1
|
||||||
updpkgsums
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd controller
|
current_version=$(grep -Po "pkgver=\K.*$" PKGBUILD)
|
||||||
latest_version=$(get_latest_version controller)
|
latest_version=$(get_latest_version $2)
|
||||||
sed -i "s/pkgver=.*$/pkgver=$latest_version/" PKGBUILD
|
|
||||||
updpkgsums
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd controller-testing
|
|
||||||
latest_version=$(get_latest_version controller testing)
|
|
||||||
sed -i "s/pkgver=.*$/pkgver=$latest_version/" PKGBUILD
|
sed -i "s/pkgver=.*$/pkgver=$latest_version/" PKGBUILD
|
||||||
updpkgsums
|
updpkgsums
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd webapp
|
if [ "$current_version" != "$latest_version" ]
|
||||||
latest_version=$(get_latest_version client)
|
then
|
||||||
sed -i "s/pkgver=.*$/pkgver=$latest_version/" PKGBUILD
|
commit_message="$commit_message\nupgpkg: $1 v$latest_version"
|
||||||
updpkgsums
|
git add PKGBUILD
|
||||||
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
upgrade_package "controller" "controller"
|
||||||
|
upgrade_package "controller-testing" "controller testing"
|
||||||
|
upgrade_package "core" "core"
|
||||||
|
upgrade_package "core-testing" "core testing"
|
||||||
|
upgrade_package "webapp" "client"
|
||||||
|
|
||||||
|
printf "$commit_message" | git commit -F -
|
||||||
|
|
Reference in a new issue