Obsolete
/
packaging
Archived
3
0
Fork 0

-B, --print-deps option added.

master
Luka Vandervelden 2019-09-04 19:53:15 +02:00
parent 3483577fa4
commit 7b57a2706d
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,7 @@ download_only = false
do_not_clean = false do_not_clean = false
watch_only = false watch_only = false
skip_build_dependencies = false skip_build_dependencies = false
print_deps = false
used_X = false used_X = false
OptionParser.parse! do |parser| OptionParser.parse! do |parser|
@ -61,6 +62,10 @@ OptionParser.parse! do |parser|
watch_only = true watch_only = true
} }
parser.on("-B", "--print-deps", "Prints build dependencies and exits.") {
print_deps = true
}
parser.on("-v", "--verbose", "Runs more verbosely.") { parser.on("-v", "--verbose", "Runs more verbosely.") {
context.verbosity += 1 context.verbosity += 1
} }
@ -137,6 +142,11 @@ begin
end end
end end
if print_deps
puts dependencies.join "\n"
exit 0
end
if dependencies.size > 0 && ! skip_build_dependencies && !download_only if dependencies.size > 0 && ! skip_build_dependencies && !download_only
# FIXME: Well probably want to have backends other than apk at some point. # FIXME: Well probably want to have backends other than apk at some point.
opts = ["add"] + (ENV["APK_FLAGS"]? || "-i").split(/[ \t]+/) + dependencies opts = ["add"] + (ENV["APK_FLAGS"]? || "-i").split(/[ \t]+/) + dependencies