fixed splitter updater
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
PKGBUILD
|
||||||
|
splitter
|
||||||
19
update.sh
Executable file
19
update.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
upstreamversion=$(curl -s https://www.mkgmap.org.uk/download/splitter.html | grep "Download splitter release " | cut -d">" -f2|cut -d"<" -f1)
|
||||||
|
aurversion=$(curl -s https://aur.archlinux.org/packages/splitter | grep "Package Details" | cut -d" " -f4|cut -d"-" -f1)
|
||||||
|
aurversion=$(curl -s 'https://aur.archlinux.org/rpc?v=5&type=info&arg[]=splitter' | jq .results[0].Version |cut -d"-" -f1 | sed 's/"//g')
|
||||||
|
|
||||||
|
cd ~/build/automate/splitter/splitter
|
||||||
|
|
||||||
|
if [[ $upstreamversion -gt $aurversion ]]
|
||||||
|
then
|
||||||
|
echo "updating from $aurversion to $upstreamversion ..."
|
||||||
|
git pull
|
||||||
|
sed -i "15s/.*/pkgver=$upstreamversion/" PKGBUILD
|
||||||
|
updpkgsums
|
||||||
|
mksrcinfo
|
||||||
|
git commit -a -m"version $upstreamversion"
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
|
||||||
Reference in New Issue
Block a user