Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
abuild
Commits
c07db665
Commit
c07db665
authored
Jul 29, 2013
by
Timo Teräs
Committed by
Natanael Copa
Jul 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: only update config.sub if our version is newer
and exit with error if not
parent
8f93ada4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
abuild.in
abuild.in
+13
-2
No files found.
abuild.in
View file @
c07db665
...
...
@@ -573,10 +573,21 @@ 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
msg
"Replacing
${
f
##*/
}
"
cp
"
$datadir
"
/
${
f
##*/
}
"
$f
"
||
return
1
local
ver
=
$(
./
"
$f
"
-t
|
tr
-d
'-'
)
if
[
"
$myver
"
-gt
"
$ver
"
]
;
then
msg
"Updating
$f
(
$myver
>
$ver
)"
cp
"
$datadir
"
/
${
f
##*/
}
"
$f
"
||
return
1
changed
=
true
else
msg
"Not updating newer
$f
"
fi
# pipe subshell will return status of last command
$changed
done
return
$?
}
runpart
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment