summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlarte2016-10-17 09:14:13 +0300
committerlarte2016-10-17 09:14:13 +0300
commit630a90e04ecf1a1de5bc493b9f46344bee9862a3 (patch)
tree33495bc847a3a52de79ca944d18db0d1024ae419
parent8bc2f01db54b0acc52ef6e36de97ec565ab0d47c (diff)
downloadaur-630a90e04ecf1a1de5bc493b9f46344bee9862a3.tar.gz
Update to 1.4.3
-rwxr-xr-xmakerel.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/makerel.sh b/makerel.sh
new file mode 100755
index 00000000000..478f0dfb1c9
--- /dev/null
+++ b/makerel.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+function get_md5()
+{
+ version=$1
+ arch=$2
+
+ md5=`curl http://storage.googleapis.com/kubernetes-release/release/v$1/bin/linux/$2/kubectl | md5sum | awk '{print $1}'`
+
+}
+
+
+if [ "x$1" == "x" ]; then
+ echo "Usage: makerel.sh VERSION"
+else
+
+ get_md5 $1 386
+ md5_386=$md5
+ echo "GOT $md5_386 for 386"
+
+ get_md5 $1 amd64
+ md5_amd64=$md5
+ echo "GOT $md5_amd64 for amd64"
+
+ sed -i.bak -r -e "s/md5sums_i686=.*/md5sums_i686=('$md5_386')/g" \
+ -e "s/md5sums_x86_64=.*/md5sums_x86_64=('$md5_amd64')/g" \
+ -e "s/pkgver=.*/pkgver=$1/g" PKGBUILD
+
+ makepkg --printsrcinfo > .SRCINFO
+
+fi