summaryrefslogtreecommitdiff
path: root/abuild.conf
diff options
context:
space:
mode:
authorOliver Smith <ollieparanoid@bitmessage.ch>2018-03-13 00:41:54 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-21 15:30:58 +0000
commita68354ebc50f60369ce465d0d59020cdf081bf22 (patch)
tree276aee2952d208b56a9cd3fe017ccbd358fdd768 /abuild.conf
parent0bb0bd8498d9898f2ef2b003ddb25a1a378f5268 (diff)
downloadabuild-a68354ebc50f60369ce465d0d59020cdf081bf22.tar.gz
abuild-a68354ebc50f60369ce465d0d59020cdf081bf22.tar.bz2
abuild-a68354ebc50f60369ce465d0d59020cdf081bf22.tar.xz
abuild-a68354ebc50f60369ce465d0d59020cdf081bf22.zip
newapkbuild: check arguments and improve usage()
Changes: * argument sanity checks: * `PKGNAME[-PKGVER] | SRCURL` * check if missing * check if specified more than once (see below) * specifying more than one buildtype flag * `-n` (set pkgname) without using SRCURL as last argument * `-s` (sourceforge source) without using PKGNAME as last argument * Typo fix: exist -> exists * `usage()`: * always print PKGNAME and PKGDESC (instead of NAME and DESC, NAME was used in one place and PKGNAME in another) * link to <https://spdx.org/licenses/> * `-m` (meson) flag was missing in short usage line at the top * indicate that the buildtypes are exclusive * `-c` flag: remove "to new directory" wording to make the message shorter (this should be obvious) * remove empty line at the end NOTE: Before this commit, the `PKGNAME[-PKGVER] | SRCURL` was allowed to be specified more than once, and the code looped over the arguments. But this was not documented in `usage()` and had unexpected results: ``` $ newapkbuild first second third $ tree . ___ first ___ APKBUILD ___ first ___ ___ APKBUILD ___ ___ first ___ ___ ___ APKBUILD ___ ___ ___ src ___ ___ src ___ src ```
Diffstat (limited to 'abuild.conf')
0 files changed, 0 insertions, 0 deletions