diff options
author | merakor <cem@ckyln.com> | 2020-07-24 14:08:57 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-07-24 14:08:57 +0000 |
commit | 0d634aa1f1710d949a5498cd3803a17c5426ca6a (patch) | |
tree | 71b4b0518d8a6b685af8a9e0c5efce800ef44e51 | |
parent | be96172e98b7289b032e1a87f13259c560920996 (diff) | |
download | cpt-0d634aa1f1710d949a5498cd3803a17c5426ca6a.tar.gz |
cpt: change local library path
FossilOrigin-Name: 3e3dc29cb83bb50fef18d5299b70328fffbb81c8970dfad0fefc16bdb0ea36bc
-rwxr-xr-x | tools/cpt | 2 | ||||
-rwxr-xr-x | tools/cpt-alternatives | 2 | ||||
-rwxr-xr-x | tools/cpt-build | 2 | ||||
-rwxr-xr-x | tools/cpt-checksum | 2 | ||||
-rwxr-xr-x | tools/cpt-download | 2 | ||||
-rwxr-xr-x | tools/cpt-fetch | 2 | ||||
-rwxr-xr-x | tools/cpt-install | 2 | ||||
-rwxr-xr-x | tools/cpt-list | 2 | ||||
-rwxr-xr-x | tools/cpt-remove | 2 | ||||
-rwxr-xr-x | tools/cpt-search | 2 | ||||
-rwxr-xr-x | tools/cpt-update | 2 |
11 files changed, 11 insertions, 11 deletions
@@ -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 index a65c2fc..f0d2be0 100755 --- 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 index ac4427b..b577176 100755 --- 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 index cb01d89..2d303d3 100755 --- 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 index cd73ba1..da0a692 100755 --- 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 index b0dbc1d..7d5be95 100755 --- 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 index ea5aaf2..e886ad4 100755 --- 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 index ca87ef6..b808e74 100755 --- 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 index a3cb5d3..b36e403 100755 --- 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 index f3cd483..47faaf7 100755 --- 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 index ef82202..368b23e 100755 --- 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 |