diff options
author | A.I | 2020-12-21 18:08:23 +0800 |
---|---|---|
committer | A.I | 2020-12-21 18:08:23 +0800 |
commit | f2a2ff261641f2dfe54df8dcf1f5cc995f7b26c1 (patch) | |
tree | 2d70f683ab3065481ead2a8c1776629de44d07ae /update.sh | |
parent | cc80074f89b5b9e9ef3bfb1041fa270e6b4ecaa4 (diff) | |
download | aur-f2a2ff261641f2dfe54df8dcf1f5cc995f7b26c1.tar.gz |
updates glow-sans-sc-compressed to v0.92
Diffstat (limited to 'update.sh')
-rw-r--r-- | update.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/update.sh b/update.sh new file mode 100644 index 000000000000..8a190bf802eb --- /dev/null +++ b/update.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +set -euo pipefail + +set -x + +scripts=(sc tc j) +widths=(compressed condensed extended normal wide) + +if [ $# -ne 1 ]; then + echo "usage: update.sh v0.91" + exit 1 +fi + +new_version=$1 + +for script in "${scripts[@]}" +do + for width in "${widths[@]}" + do + pkgname="glow-sans-${script}-${width}" + echo "updating ${pkgname} to ${new_version}." + + # switching branch and remote + git remote set-url aur "ssh://aur@aur.archlinux.org/$pkgname" + git fetch aur master + git checkout -B ${pkgname} aur/master + + # update version + sed -i "s/pkgver=.*$/pkgver=${new_version}/" PKGBUILD + updpkgsums + makepkg --printsrcinfo > .SRCINFO + git add . + git commit -m "updates ${pkgname} to ${new_version}" + git push aur ${pkgname}:master + echo "updated ${pkgname} to ${new_version}." + done +done |