mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 06:38:44 +01:00
add update script
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
This commit is contained in:
parent
b7fc71d261
commit
183bb27f97
1 changed files with 23 additions and 0 deletions
23
update.sh
Normal file
23
update.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
#stop on failure
|
||||
set -e
|
||||
|
||||
echo "Updating to verion $1"
|
||||
sed -i -e "s/pkgver=.*/pkgver=$1/g" PKGBUILD
|
||||
|
||||
echo "Updating checksums"
|
||||
updpkgsums
|
||||
|
||||
echo "Updating SRCINFO"
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
|
||||
echo "Commiting changes"
|
||||
git add PKGBUILD .SRCINFO
|
||||
git commit -m "Update to version $1"
|
||||
git clean -d -f
|
||||
|
||||
echo "Pushing changes"
|
||||
git push
|
||||
|
||||
echo "Update Complete :)"
|
||||
Loading…
Add table
Reference in a new issue