From 0d634aa1f1710d949a5498cd3803a17c5426ca6a Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 24 Jul 2020 14:08:57 +0000 Subject: cpt: change local library path FossilOrigin-Name: 3e3dc29cb83bb50fef18d5299b70328fffbb81c8970dfad0fefc16bdb0ea36bc --- tools/cpt | 2 +- tools/cpt-alternatives | 2 +- tools/cpt-build | 2 +- tools/cpt-checksum | 2 +- tools/cpt-download | 2 +- tools/cpt-fetch | 2 +- tools/cpt-install | 2 +- tools/cpt-list | 2 +- tools/cpt-remove | 2 +- tools/cpt-search | 2 +- tools/cpt-update | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'tools') diff --git a/tools/cpt b/tools/cpt index 9585330..a2dad72 100755 --- 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 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 -- cgit v1.2.3