summarylogtreecommitdiffstats
path: root/release
blob: 009e74147e91e843211fd0c794755059f3b0b369 (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/bash


makepkg --printsrcinfo > .SRCINFO

pk_name=$(grep -Po "^pkgname=\K.*" PKGBUILD)
pk_ver=$(grep -Po "^pkgver=\K.*" PKGBUILD)
pk_rel=$(grep -Po "^pkgrel=\K.*" PKGBUILD)

commit_msg="update to $pk_name ver $pk_ver, rel version $pk_rel" 

git add PKGBUILD .SRCINFO
git commit -m "$commit_msg"
git checkout master
git merge main
git push aur master
git status

# push to gitlab too
git checkout main
git pull
git push origin main