mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update update.sh again
This commit is contained in:
parent
1c75fe792a
commit
5b8376e2fc
1 changed files with 3 additions and 6 deletions
|
|
@ -7,22 +7,19 @@ if [ -n "$(git status --porcelain)" ]; then
|
|||
echo "Working directory is not clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git pull
|
||||
|
||||
read -r -d "\n" TAG_NAME RELEASE_NAME <<< "$(curl -sSf "https://api.github.com/repos/ruffle-rs/ruffle/releases?per_page=1" | jq -r ".[0] | .tag_name, .name")" || true
|
||||
|
||||
sed -e "s/^pkgver=.*/pkgver=${TAG_NAME//-/.}/" \
|
||||
-e "s/^pkgrel=.*/pkgrel=1/" \
|
||||
-i PKGBUILD
|
||||
|
||||
sed -e "s/^pkgver=.*/pkgver=${TAG_NAME//-/.}/" -i PKGBUILD
|
||||
if [ -z "$(git status --porcelain)" ]; then
|
||||
echo "Nothing to do"
|
||||
exit 1
|
||||
fi
|
||||
sed -e "s/^pkgrel=.*/pkgrel=1/" -i PKGBUILD
|
||||
|
||||
echo "Updating to $RELEASE_NAME..."
|
||||
updpkgsums
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
makepkg
|
||||
git commit -am "Update to $RELEASE_NAME"
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue