summaryrefslogtreecommitdiff
path: root/src/mips64el-tools/mips-add
diff options
context:
space:
mode:
Diffstat (limited to 'src/mips64el-tools/mips-add')
-rwxr-xr-xsrc/mips64el-tools/mips-add8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mips64el-tools/mips-add b/src/mips64el-tools/mips-add
new file mode 100755
index 0000000..402036e
--- /dev/null
+++ b/src/mips64el-tools/mips-add
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+. libremessages
+if ! grep mips64el PKGBUILD >/dev/null; then # Add mips64el in ${arch} array if it isn't 'any'
+ warning "Adding mips64el arch"
+ sed -i "s/^\(arch=([^)anym]\+\))/\1 'mips64el')/" "PKGBUILD"
+ git add PKGBUILD
+ git commit
+fi