cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 3d23e1f5c0302e8e84551b21aa1c41a6782e0de2
parent e009c78a4757fada3b241acc94a21d73b66202fe
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 24 Jul 2020 17:08:58 +0300

cpt: change local library path

Diffstat:
Mtools/cpt | 2+-
Mtools/cpt-alternatives | 2+-
Mtools/cpt-build | 2+-
Mtools/cpt-checksum | 2+-
Mtools/cpt-download | 2+-
Mtools/cpt-fetch | 2+-
Mtools/cpt-install | 2+-
Mtools/cpt-list | 2+-
Mtools/cpt-remove | 2+-
Mtools/cpt-search | 2+-
Mtools/cpt-update | 2+-
11 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/tools/cpt b/tools/cpt @@ -1,7 +1,7 @@ #!/bin/sh -ef # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else ./cpt-lib; fi [ "$1" ] && { arg=$1; shift; } case "$arg" in diff --git a/tools/cpt-alternatives b/tools/cpt-alternatives @@ -2,7 +2,7 @@ # List and swap to alternatives # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi case "$1" in --version|--help|-v|-h|'') ;; *) [ -w "$CPT_ROOT/" ] || [ "$uid" = 0 ] || { diff --git a/tools/cpt-build b/tools/cpt-build @@ -2,7 +2,7 @@ # Build a package # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi case "$1" in '') set -- "${PWD##*/}"; export CPT_PATH=${PWD%/*}:$CPT_PATH ;; diff --git a/tools/cpt-checksum b/tools/cpt-checksum @@ -2,7 +2,7 @@ # Generate checksums # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi case "$1" in --help|-h) out "usage: ${0##*/} [pkg...]"; exit 1 ;; diff --git a/tools/cpt-download b/tools/cpt-download @@ -2,7 +2,7 @@ # Download sources for the given package # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi case "$1" in --help|-h) diff --git a/tools/cpt-fetch b/tools/cpt-fetch @@ -2,7 +2,7 @@ # Fetch repositories # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi case "$1" in --help|-h) out "usage: ${0##*/}"; exit 1 ;; diff --git a/tools/cpt-install b/tools/cpt-install @@ -2,7 +2,7 @@ # Install a package # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi while [ "$1" ]; do case "$1" in diff --git a/tools/cpt-list b/tools/cpt-list @@ -2,7 +2,7 @@ # List installed packages # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi case "$1" in --help|-h) out "usage: ${0##*/} [pkg...]"; exit 1 ;; diff --git a/tools/cpt-remove b/tools/cpt-remove @@ -2,7 +2,7 @@ # Remove a package # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi while [ "$1" ]; do case "$1" in diff --git a/tools/cpt-search b/tools/cpt-search @@ -2,7 +2,7 @@ # Search for a package # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi # By default we are showing all instances of a package. This value can be unset # in order to only find the first instance of a package. diff --git a/tools/cpt-update b/tools/cpt-update @@ -2,7 +2,7 @@ # Check for updates # shellcheck disable=1091 -if command -v cpt-lib >/dev/null; then . cpt-lib; else . ../lib.sh; fi +if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi while [ "$1" ]; do case "$1" in