Commit 21fb14d4 authored by Timo Teräs's avatar Timo Teräs Committed by Natanael Copa

abuild: only update config.sub if needed

its only arm that needs it
parent e150a251
......@@ -573,16 +573,14 @@ mkusers() {
# helper to update config.sub to a recent version
update_config_sub() {
local myver=$("$datadir"/config.sub -t | tr -d '-')
local changed=false
find . -name config.sub | while read f; do
local ver=$(./"$f" -t | tr -d '-')
if [ "$myver" -gt "$ver" ]; then
msg "Updating $f ($myver > $ver)"
if ! ./$f armv6-alpine-linux-muslgnueabihf 2>/dev/null; then
msg "Updating $f"
cp "$datadir"/${f##*/} "$f" || return 1
changed=true
else
msg "Not updating newer $f"
msg "Not new enough $f"
fi
# pipe subshell will return status of last command
$changed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment