summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-29 14:10:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-29 14:10:38 +0000
commit21fb14d4e1940caab626277feb38a5e867b1b8a9 (patch)
treeb5be39138d7c1fe6996948215f4525dc399b91bd
parente150a2515c617f14edad507999ce6f6a582d7a92 (diff)
downloadabuild-21fb14d4e1940caab626277feb38a5e867b1b8a9.tar.bz2
abuild-21fb14d4e1940caab626277feb38a5e867b1b8a9.tar.xz
abuild: only update config.sub if needed
its only arm that needs it
-rwxr-xr-xabuild.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/abuild.in b/abuild.in
index 0807e41..8c93658 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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