summarylogtreecommitdiffstats
path: root/repo_upgrader.sh
blob: d951c66413d1d00b6decfcc255acd6f2b46d0065 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# ###################################################
# You can use this script as
# cronjob (or something lika that)
# to automatically update package repository
#
# This script can be useful ONLY for repo contributors
# ####################################################
cd $(dirname "$0")
./update.sh && zenity --info --text "AUR-репозиторий пакета firefox-nightly-ru сейчас будет обновлен" --no-wrap && git pull && makepkg --printsrcinfo > .SRCINFO && git add PKGBUILD .SRCINFO && ./update.sh | grep -oP "^\w+: [0-9a-z.]+, \w+: \K([0-9a-z.]+)$" | awk '{print "Update to " $1}' | git commit -F - && git push