summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Smith2019-05-05 18:48:48 -0600
committerAdrien Smith2019-05-05 18:48:48 -0600
commitece50226dc5efd5a2aa6b70b82a86c165204d2ea (patch)
treea32ca2589bb5df29f5d6f136745053ae3ee99b62
parent22774f823f22b61275d7fd3c0a12d20c1c7b3832 (diff)
downloadaur-ece50226dc5efd5a2aa6b70b82a86c165204d2ea.tar.gz
Add `update` script
-rw-r--r--README.md5
-rwxr-xr-xdocker-srcinfo3
-rwxr-xr-xupdate8
3 files changed, 11 insertions, 5 deletions
diff --git a/README.md b/README.md
index f11ead83561..ae05efe6acd 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
How to update the package from Arch on any system:
1. Edit the PKGBUILD and change the `pkgver` field.
-2. If you're on Arch, run `updpkgsums && makepkg --printsrcinfo > .SRCINFO`, and skip to the last step.
+2. If you're on Arch, run `./update` and skip to the last step.
3. If you're on a different system, use the Docker or Vagrant options below to update the checksums and .SRCINFO.
4. Commit & push
@@ -24,8 +24,7 @@ vagrant ssh
# Install dev dependencies
sudo pacman -Syu --needed base-devel pacman-contrib
cd /vagrant
-updpkgsums
-makepkg --printsrcinfo > .SRCINFO
+./update
```
## Push to multiple origins
diff --git a/docker-srcinfo b/docker-srcinfo
index e2c6931cdc5..b4db6e250d5 100755
--- a/docker-srcinfo
+++ b/docker-srcinfo
@@ -5,5 +5,4 @@
#
id=$(docker build -q .)
-docker run --rm --volume "$(pwd):/src" --user="$(id -u):$(id -g)" "$id" \
- /bin/bash -c 'updpkgsums && makepkg --printsrcinfo > .SRCINFO'
+docker run --rm --volume "$(pwd):/src" --user="$(id -u):$(id -g)" "$id" ./update
diff --git a/update b/update
new file mode 100755
index 00000000000..c6c2199482d
--- /dev/null
+++ b/update
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# Script with necessary update steps, regardless of system.
+#
+
+updpkgsums
+echo 'Updating AUR package metadata...'
+makepkg --printsrcinfo > .SRCINFO