From b874a4c8cd34c46774de06b60bdbc82b514c3e7f Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 12 Aug 2016 13:07:30 +0200 Subject: abuild: add update_config_guess --- abuild.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'abuild.in') 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" -- cgit v1.2.3-70-g09d2