summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-12 13:07:30 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-12 15:26:06 +0200
commitb874a4c8cd34c46774de06b60bdbc82b514c3e7f (patch)
tree9788bdff3b41bca73e72e2f012dfd6c3a7ac2d9a /abuild.in
parent4f7a4556a0d815802b573d3260eb6e5365834576 (diff)
downloadabuild-b874a4c8cd34c46774de06b60bdbc82b514c3e7f.tar.gz
abuild-b874a4c8cd34c46774de06b60bdbc82b514c3e7f.tar.bz2
abuild-b874a4c8cd34c46774de06b60bdbc82b514c3e7f.tar.xz
abuild-b874a4c8cd34c46774de06b60bdbc82b514c3e7f.zip
abuild: add update_config_guess
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"