diff options
Diffstat (limited to 'tools/cpt-build')
-rwxr-xr-x | tools/cpt-build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/cpt-build b/tools/cpt-build new file mode 100755 index 0000000..40ae4fd --- /dev/null +++ b/tools/cpt-build @@ -0,0 +1,12 @@ +#!/bin/sh + +# shellcheck disable=1091 +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi + +case "$1" in + '') set -- "${PWD##*/}"; export CPT_PATH=${PWD%/*}:$CPT_PATH ;; + --help|-h) out "usage: ${0##*/} [pkg...]"; exit 1 ;; + --version|-v) version ;; +esac + +pkg_build "$@" |