Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/local-build-package5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/local-build-package b/bin/local-build-package
index 49907a4..ade87c0 100755
--- a/bin/local-build-package
+++ b/bin/local-build-package
@@ -115,6 +115,11 @@ if [ $# -ne 2 ]; then
usage
fi
+if [ $arch != "i486" ] && [ $arch != "i686" ] && [ $arch != "pentium4" ]; then
+ >&2 echo "Illegal architecture '$arch', epxecting one of 'i486', 'i686' or 'pentium4'."
+ usage
+fi
+
if ${bootstrap}; then
if [ -z "${bootstrap_host}" ]; then
>&2 echo -- '-b option requires a bootstrapping host to be set with -H'