test: added pkgctl devel wrapper for convenient development testing
For local development testing, there is a convenience wrapper for `pkgctl` that will automatically build the project using make and proxy all calls to the local build directory. Either `./test/bin/pkgctl` can be run directly or the `test/bin` directory can be added to the PATH. Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
parent
cddba60958
commit
c839d52793
|
@ -14,6 +14,15 @@ files like `makepkg.conf`.
|
||||||
BUILDTOOLVER="${pkgver}-${pkgrel}-${arch}" make all
|
BUILDTOOLVER="${pkgver}-${pkgrel}-${arch}" make all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
For local development testing, there is a convenience wrapper for `pkgctl` that
|
||||||
|
will automatically build the project and proxy all calls to the local build directory:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./test/bin/pkgctl --help
|
||||||
|
```
|
||||||
|
|
||||||
## Releasing
|
## Releasing
|
||||||
|
|
||||||
1. bump the version in the Makefile
|
1. bump the version in the Makefile
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
root="$(dirname -- "$(readlink -f -- "$0")")/../.."
|
||||||
|
|
||||||
|
# always build everything so we use an up-to-date state
|
||||||
|
make -C "${root}" -j --no-print-directory --silent
|
||||||
|
|
||||||
|
# run pkgctl from the build directory
|
||||||
|
export PATH="${root}/build/bin:${PATH}"
|
||||||
|
export _DEVTOOLS_LIBRARY_DIR="${root}/build"
|
||||||
|
"${root}/build/bin/pkgctl" "$@"
|
Loading…
Reference in New Issue