abuild: add -V for print abuild version
This commit is contained in:
parent
66177eb5ec
commit
511b934182
|
@ -2493,7 +2493,7 @@ usage() {
|
||||||
|
|
||||||
APKBUILD="${APKBUILD:-./APKBUILD}"
|
APKBUILD="${APKBUILD:-./APKBUILD}"
|
||||||
unset force
|
unset force
|
||||||
while getopts ":AcdD:fFhkKmnP:qrRs:uv" opt; do
|
while getopts ":AcdD:fFhkKmnP:qrRs:uvV" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
'A') echo "$CARCH"; exit 0;;
|
'A') echo "$CARCH"; exit 0;;
|
||||||
'c') enable_colors
|
'c') enable_colors
|
||||||
|
@ -2513,6 +2513,7 @@ while getopts ":AcdD:fFhkKmnP:qrRs:uv" opt; do
|
||||||
'r') install_deps="-r";;
|
'r') install_deps="-r";;
|
||||||
's') SRCDEST=$OPTARG;;
|
's') SRCDEST=$OPTARG;;
|
||||||
'v') set -x;;
|
'v') set -x;;
|
||||||
|
'V') echo "$program $program_version"; exit 0;;
|
||||||
'?') die "Unrecognized option: $OPTARG";;
|
'?') die "Unrecognized option: $OPTARG";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue