summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-03 22:05:23 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-10-03 22:05:23 +0200
commit553e0675788308742b83ebaafbf157fecb5271dc (patch)
tree65cf833fe8c4357481b14f94fe50f0b07063f2fc
parent0526102864aaad148711715ad4e7d22c1de89263 (diff)
downloadbin-553e0675788308742b83ebaafbf157fecb5271dc.tar.gz
bin-553e0675788308742b83ebaafbf157fecb5271dc.tar.xz
upgpkg: show download progress and md5sums
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xupgpkg1
1 files changed, 1 insertions, 0 deletions
diff --git a/upgpkg b/upgpkg
index 8d00984..df3dac9 100755
--- a/upgpkg
+++ b/upgpkg
@@ -102,6 +102,7 @@ fi
sed -i "s/pkgver=.*$/pkgver=$1/g" PKGBUILD
sed -i "s/pkgrel=.*$/pkgrel=1/g" PKGBUILD
+makepkg -g
awk <PKGBUILD '$0 ~ /^(md5|sha[0-9]+)sums/ {i = 1; if(!run==1) {system("makepkg -g 2>/dev/null")}; run=1; }; !i {print}; $0 ~ /\)/ {i = 0}' | sponge PKGBUILD
source PKGBUILD