blob: 18db62f5a46e78123b2c5450efbebde3b5a18b41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
touch lastVersion
lastVersion=`cat lastVersion`
currentVersion=`curl https://www.mkgmap.org.uk/download/mkgmap.html --silent | grep "Download mkgmap release" | sed -rn 's/.*([[:digit:]][[:digit:]][[:digit:]][[:digit:]]).*/\1/p'`
if [ "${lastVersion}" = "${currentVersion}" ]; then
exit 0
fi
sed -i "s/pkgver=.*/pkgver=${currentVersion}/g" PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO
git commit -m "release version ${currentVersion}"
git push
echo $currentVersion > lastVersion
rm "mkgmap-r${currentVersion}.zip"
|