Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
6e55c8ce
Commit
6e55c8ce
authored
Nov 09, 2008
by
Linux User
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added -u option for recursively build and upgrade dependencies
parent
b89cd095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
abuild
abuild
+14
-7
No files found.
abuild
View file @
6e55c8ce
...
...
@@ -397,15 +397,19 @@ find_aport() {
builddeps
()
{
local
dep pkg
for
dep
in
$depends
$makedepends
;
do
apk_info
-e
$dep
&&
continue
[
-z
"
$upgrade
"
]
&&
apk_info
-e
$dep
&&
continue
[
-z
"
$recursive
"
]
&&
die
"Missing dependency
$dep
. Use -r to build recursively"
# sudo apk_add $dep && continue
pkg
=
$(
find_aport
$dep
)
||
die
"failed to find dependency
$dep
"
pkg
=
$(
find_aport
$dep
)
if
[
-z
"
$pkg
"
]
;
then
# try install from system repo as fallback
apk_add
${
upgrade
:+-u
}
$dep
&&
continue
die
"Failed to find dependency
$dep
"
fi
# recursively build deps
msg
"Entering
${
pkg
%/*
}
"
cd
${
pkg
%/*
}
$0
-r
||
return
1
sudo
apk_add
$pkg
$0
-r
${
upgrade
:+-u
}
||
return
1
sudo
apk_add
$
{
upgrade
:+-u
}
$
pkg
done
}
...
...
@@ -415,8 +419,9 @@ usage() {
echo
"Options:"
echo
" -h Show this help"
echo
" -f Force specified cmd, even if they are already done"
echo
" -r Recursively build and install dependencies (using sudo)"
echo
" -q Quiet"
echo
" -r Recursively build and install missing dependencies (using sudo)"
echo
" -u Recursively build and upgrade dependencies (using sudo)"
echo
""
echo
"Commands:"
echo
" checksum Generate checksum to be included in
$APKBUILD
"
...
...
@@ -448,12 +453,14 @@ checksum() {
APKBUILD
=
"
${
APKBUILD
:-
./APKBUILD
}
"
while
getopts
"hfqr"
opt
;
do
while
getopts
"hfqr
u
"
opt
;
do
case
$opt
in
'h'
)
usage
;;
'f'
)
force
=
1
;;
'q'
)
quiet
=
1
;;
'r'
)
recursive
=
1
;;
'u'
)
upgrade
=
1
recursive
=
1
;;
esac
done
shift
$((
$OPTIND
-
1
))
...
...
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