diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-12 13:07:30 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-12 15:26:06 +0200 |
commit | b874a4c8cd34c46774de06b60bdbc82b514c3e7f (patch) | |
tree | 9788bdff3b41bca73e72e2f012dfd6c3a7ac2d9a /abuild.in | |
parent | 4f7a4556a0d815802b573d3260eb6e5365834576 (diff) | |
download | abuild-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.in | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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" |