mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Remove update.sh
This commit is contained in:
parent
6db2c25b03
commit
5ddc7d9b90
2 changed files with 0 additions and 28 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,5 +3,3 @@
|
|||
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
||||
|
||||
!update.sh
|
||||
|
|
|
|||
26
update.sh
26
update.sh
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
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
|
||||
TAG_NAME=${TAG_NAME##nightly-}
|
||||
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 -sf --noconfirm
|
||||
git commit -am "Update to $RELEASE_NAME"
|
||||
git push
|
||||
Loading…
Add table
Reference in a new issue