summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom "Ravi" Hale2018-10-06 20:10:56 +0700
committerTom "Ravi" Hale2018-10-07 16:42:24 +0700
commitd6fd90b4caa5bbb02fc18c45dc6e16d646ac492f (patch)
tree58ddf290024fd785abb822d6335b1dab7faef678
parent12ac6482ca41641f32badb8614ef9eab03995053 (diff)
downloadaur-d6fd90b4caa5bbb02fc18c45dc6e16d646ac492f.tar.gz
make-check: Allow for build from any directory
-rwxr-xr-xmake-check4
1 files changed, 4 insertions, 0 deletions
diff --git a/make-check b/make-check
new file mode 100755
index 000000000000..850bdb5c3816
--- /dev/null
+++ b/make-check
@@ -0,0 +1,4 @@
+#!/bin/bash
+cd -P -- "$(dirname "$0")" || exit 1 # Allow to be called from any directory
+makepkg -ef || makepkg -f && namcap PKGBUILD && namcap ./*.tar.xz
+makepkg --printsrcinfo >| .SRCINFO && echo "Updated .SRCINFO" >&2