Commit 2d9dd59b authored by Natanael Copa's avatar Natanael Copa

abuild: add -A for print arch

parent 3a48923a
...@@ -1873,6 +1873,7 @@ usage() { ...@@ -1873,6 +1873,7 @@ usage() {
echo " [-s SRCDEST] [cmd] ..." echo " [-s SRCDEST] [cmd] ..."
echo " $program [-c] -n PKGNAME[-PKGVER]" echo " $program [-c] -n PKGNAME[-PKGVER]"
echo "Options:" echo "Options:"
echo " -a Print CARCH and exit"
echo " -c Enable colored output" echo " -c Enable colored output"
echo " -d Disable dependency checking" echo " -d Disable dependency checking"
echo " -f Force specified cmd, even if they are already done" echo " -f Force specified cmd, even if they are already done"
...@@ -1916,8 +1917,9 @@ usage() { ...@@ -1916,8 +1917,9 @@ usage() {
APKBUILD="${APKBUILD:-./APKBUILD}" APKBUILD="${APKBUILD:-./APKBUILD}"
unset force unset force
unset recursive unset recursive
while getopts "cdfFhi:kimnp:P:qrRs:u" opt; do while getopts "AcdfFhi:kimnp:P:qrRs:u" opt; do
case $opt in case $opt in
'A') echo "$CARCH"; exit 0;;
'c') enable_colors 'c') enable_colors
color_opt="-c";; color_opt="-c";;
'd') nodeps=1;; 'd') nodeps=1;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment