diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-31 08:47:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-31 08:51:50 +0000 |
commit | 2d9dd59b6707fd3ab3fa2ffa4051dac5d8bbb1d2 (patch) | |
tree | 8657a77e83b7b7b734711c7201a26725dca90f1f | |
parent | 3a48923aa5612230f28c6f54f13680d798c14b70 (diff) | |
download | abuild-2d9dd59b6707fd3ab3fa2ffa4051dac5d8bbb1d2.tar.gz abuild-2d9dd59b6707fd3ab3fa2ffa4051dac5d8bbb1d2.tar.bz2 abuild-2d9dd59b6707fd3ab3fa2ffa4051dac5d8bbb1d2.tar.xz abuild-2d9dd59b6707fd3ab3fa2ffa4051dac5d8bbb1d2.zip |
abuild: add -A for print arch
-rwxr-xr-x | abuild.in | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1873,6 +1873,7 @@ usage() { echo " [-s SRCDEST] [cmd] ..." echo " $program [-c] -n PKGNAME[-PKGVER]" echo "Options:" + echo " -a Print CARCH and exit" echo " -c Enable colored output" echo " -d Disable dependency checking" echo " -f Force specified cmd, even if they are already done" @@ -1916,8 +1917,9 @@ usage() { APKBUILD="${APKBUILD:-./APKBUILD}" unset force unset recursive -while getopts "cdfFhi:kimnp:P:qrRs:u" opt; do +while getopts "AcdfFhi:kimnp:P:qrRs:u" opt; do case $opt in + 'A') echo "$CARCH"; exit 0;; 'c') enable_colors color_opt="-c";; 'd') nodeps=1;; |