summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 8502fe3..3e41eac 100644
--- a/abuild.in
+++ b/abuild.in
@@ -521,6 +521,23 @@ update_config_sub() {
return $?
}
+# helper to update config.guess to a recent version
+update_config_guess() {
+ local changed=false
+ find . -name config.guess | while read f; do
+ if grep -q aarch64 "$f"; then
+ msg "No update needed for $f"
+ else
+ msg "Updating $f"
+ cp "$datadir"/${f##*/} "$f" || return 1
+ changed=true
+ fi
+ # pipe subshell will return status of last command
+ $changed
+ done
+ return $?
+}
+
runpart() {
local part=$1
[ -n "$DEBUG" ] && msg "$part"