Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/pacman-mirrorlist/update-list
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-23 15:23:14 +0200
committerErich Eckner <git@eckner.net>2017-05-23 15:23:14 +0200
commit4c52d117bb5057c010ed07e92be91f9230656979 (patch)
tree5fe8b3a7a4ba52eb7da2802b242a8da8290e0543 /core/pacman-mirrorlist/update-list
parent05724639323b2d21bcc5e156fc1f69dc311eb54d (diff)
pacman-mirrorlist: automate mirror list update procedure, add mirror.archlinux32.oss
Diffstat (limited to 'core/pacman-mirrorlist/update-list')
-rwxr-xr-xcore/pacman-mirrorlist/update-list13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/pacman-mirrorlist/update-list b/core/pacman-mirrorlist/update-list
new file mode 100755
index 00000000..f1fb30f2
--- /dev/null
+++ b/core/pacman-mirrorlist/update-list
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+cd "${0%/*}"
+
+printf "pkgver=%s\n" "$(date '+%Y%m%d')" > PKGBUILD
+printf "sha256sums=('%s')\n" "$(
+ sha256sum mirrorlist | \
+ awk '{print $1}'
+)" >> PKGBUILD
+printf "md5sums=('%s')\n" "$(
+ md5sum mirrorlist | \
+ awk '{print $1}'
+)" >> PKGBUILD