aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cpt2
-rwxr-xr-xtools/cpt-alternatives2
-rwxr-xr-xtools/cpt-build2
-rwxr-xr-xtools/cpt-checksum2
-rwxr-xr-xtools/cpt-download2
-rwxr-xr-xtools/cpt-fetch2
-rwxr-xr-xtools/cpt-install2
-rwxr-xr-xtools/cpt-list2
-rwxr-xr-xtools/cpt-remove2
-rwxr-xr-xtools/cpt-search2
-rwxr-xr-xtools/cpt-update2
11 files changed, 11 insertions, 11 deletions
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