diff options
Diffstat (limited to 'core/pacman-mirrorlist/update-list')
-rwxr-xr-x | core/pacman-mirrorlist/update-list | 13 |
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 |