summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBazaah2019-11-06 17:28:28 +0000
committerBazaah2019-11-06 17:28:28 +0000
commit825c96584cb1e3ebcfb36f0f9b61118b5022ed8c (patch)
treee86b84d413973d446922c49416e8a0b9f4001c59
parentc041a96f48b9c930e92b2b582df8d51002a504af (diff)
downloadaur-825c96584cb1e3ebcfb36f0f9b61118b5022ed8c.tar.gz
updated script
-rwxr-xr-xupdate.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/update.sh b/update.sh
index 520db40fd79..9affc30a755 100755
--- a/update.sh
+++ b/update.sh
@@ -25,12 +25,15 @@ echo "Using $LATEST as the latest version"
if [ "$PKG_LATEST" = "$LATEST" ]; then
(
echo "No change in version, Incrementing PKG release..."
- increment=$(grep -oP "pkgrel\s*=\s*(\d+)" ./PKGBUILD | grep -oP "\d+")
- let "increment++"
+ current=$(grep -oP "pkgrel\s*=\s*(\d+)" ./PKGBUILD | grep -oP "\d+")
+ next=$current
+ let "next++"
for file in $(find . -maxdepth 1 -type f -name 'PKGBUILD' -or -name '.SRCINFO'); do
- sed -i -E "s/(pkgrel\s*=\s*).*/\1$increment/" $file
+ sed -i -E "s/(pkgrel\s*=\s*).*/\1$next/" $file
done
+
+ git commit --all --message "$LATEST release $current => $next"
)
else
(
@@ -40,7 +43,12 @@ else
sed -i -E "s/(pkgver\s*=\s*).*/\1${LATEST}/" ./PKGBUILD
sed -i -E "s/(pkgrel\s*=\s*).*/\11/" ./PKGBUILD
done
+
+ git commit --all --message "$LATEST"
)
fi
-echo "AUR PKG update successful, repo is ready to be commited"
+git diff --color --minimal --unified=0 @^ | cat
+
+echo "AUR PKG update successful, repo is ready to be pushed"
+