mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 07:52:30 +00:00
abuild: allow help (-h) even if there is no APKBUILD
This commit is contained in:
parent
7534b15bb3
commit
469786dd75
11
abuild
11
abuild
@ -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() {
|
|||||||
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
|
|||||||
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=
|
||||||
|
Loading…
Reference in New Issue
Block a user