Commit b874a4c8 authored by Carlo Landmeter's avatar Carlo Landmeter

abuild: add update_config_guess

parent 4f7a4556
......@@ -13,7 +13,7 @@ SCRIPTS := abuild abuild-keygen abuild-sign newapkbuild \
USR_BIN_FILES := $(SCRIPTS) abuild-tar abuild-sudo abuild-fetch
SAMPLES := sample.APKBUILD sample.initd sample.confd \
sample.pre-install sample.post-install
AUTOTOOLS_TOOLCHAIN_FILES := config.sub
AUTOTOOLS_TOOLCHAIN_FILES := config.sub config.guess
SCRIPT_SOURCES := $(addsuffix .in,$(SCRIPTS))
......
......@@ -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"
......
This diff is collapsed.
This diff is collapsed.
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