Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
469786dd
Commit
469786dd
authored
16 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
abuild: allow help (-h) even if there is no APKBUILD
parent
7534b15b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
abuild
+5
-6
5 additions, 6 deletions
abuild
with
5 additions
and
6 deletions
abuild
+
5
−
6
View file @
469786dd
...
@@ -536,7 +536,7 @@ usage() {
...
@@ -536,7 +536,7 @@ usage() {
echo
" -u Recursively build and upgrade dependencies (using sudo)"
echo
" -u Recursively build and upgrade dependencies (using sudo)"
echo
""
echo
""
echo
"Commands:"
echo
"Commands:"
echo
" checksum Generate checksum to be included in
$
APKBUILD
"
echo
" checksum Generate checksum to be included in APKBUILD"
echo
" fetch Fetch sources to
\$
SRCDEST and verify checksums"
echo
" fetch Fetch sources to
\$
SRCDEST and verify checksums"
echo
" sanitycheck Basic sanity check of APKBUILD"
echo
" sanitycheck Basic sanity check of APKBUILD"
echo
" md5check Check md5sums"
echo
" md5check Check md5sums"
...
@@ -555,12 +555,7 @@ usage() {
...
@@ -555,12 +555,7 @@ usage() {
exit
0
exit
0
}
}
# source the buildfile
APKBUILD
=
"
${
APKBUILD
:-
./APKBUILD
}
"
APKBUILD
=
"
${
APKBUILD
:-
./APKBUILD
}
"
[
-f
"
$APKBUILD
"
]
||
die
"Could not find
$APKBUILD
(PWD=
$PWD
)"
.
"
$APKBUILD
"
unset
force
unset
force
unset
recursive
unset
recursive
while
getopts
"fhi:kip:qrs:u"
opt
;
do
while
getopts
"fhi:kip:qrs:u"
opt
;
do
...
@@ -579,6 +574,10 @@ while getopts "fhi:kip:qrs:u" opt; do
...
@@ -579,6 +574,10 @@ while getopts "fhi:kip:qrs:u" opt; do
done
done
shift
$((
$OPTIND
-
1
))
shift
$((
$OPTIND
-
1
))
# source the buildfile
[
-f
"
$APKBUILD
"
]
||
die
"Could not find
$APKBUILD
(PWD=
$PWD
)"
.
"
$APKBUILD
"
# If we are handling a sub package then reset subpackages
# If we are handling a sub package then reset subpackages
if
[
-n
"
$subpkgname
"
]
;
then
if
[
-n
"
$subpkgname
"
]
;
then
subpackages
=
subpackages
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment