[misc] update the build script

This commit is contained in:
Kevin Yue
2022-05-09 22:40:00 +08:00
parent ff58258d5c
commit e3aba11506
2 changed files with 41 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ function update_rpm_changelog() {
function generate_pkgbuild() {
local commit_id="$(git rev-parse HEAD)"
local version="$(cat VERSION)"
sed -i"" -e "s/{COMMIT}/${commit_id}/" -e "s/{VERSION}/${version}/" packaging/aur/PKGBUILD
sed -e "s/{COMMIT}/${commit_id}/" -e "s/{VERSION}/${version}/" packaging/aur/PKGBUILD.in > packaging/aur/PKGBUILD
}
# Update rpm version