aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md11
-rwxr-xr-xcontrib/cpt-fork4
-rwxr-xr-xcontrib/cpt-size8
-rw-r--r--man/cpt.12
4 files changed, 20 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cb61ae1..3922eaa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,8 +9,17 @@ this project _somewhat_ adheres to [Semantic Versioning].
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
+[6.2.1] - 2021-09-20
+---------------------------------------------------------------------------------
+
+### Fixed
+- `cpt-fork` follows symbolic links when forking packages.
+- Fixed "crux-like" usage in `cpt-size`
+- Fixed documentation path in the manual page
+
+
[6.2.0] - 2021-08-14
---------------------------------------------------------------------------------
+---------------------------------------------------------------------------------
### BLAKE3 checksums
diff --git a/contrib/cpt-fork b/contrib/cpt-fork
index 21e1618..733c942 100755
--- a/contrib/cpt-fork
+++ b/contrib/cpt-fork
@@ -31,12 +31,12 @@ for pkg; do
case "$pkg" in
*/*)
[ -d "$pkg" ] || die "$pkg is not a directory"
- cp -r "$pkg" .
+ cp -Hr "$pkg" .
pkg=${pkg##*/}
;;
*)
cpt-search "$pkg" >/dev/null
- cp -r "$(cpt-search --single "$pkg")" .
+ cp -Hr "$(cpt-search --single "$pkg")" .
esac
# Sometimes forked packages are from the database and not from a repository.
diff --git a/contrib/cpt-size b/contrib/cpt-size
index 4b983a1..00508b8 100755
--- a/contrib/cpt-size
+++ b/contrib/cpt-size
@@ -10,7 +10,10 @@
## calculates the sizes of given
## .Ar packages
## using the files from the package manifest and outputs a total size of the
-## packages along with all the files associated with them.
+## packages along with all the files associated with them. If no arguments have
+## been given,
+## .Nm
+## will use the name of the current directory as an argument.
parser_definition() {
setup REST help:usage -- "usage: ${0##*/} [pkg...]"
disp :usage -h --help hidden:1
@@ -20,6 +23,9 @@ parser_definition() {
# shellcheck disable=1091
. cpt-lib
+# Use the current directory if no arguments have been given.
+[ "$1" ] || set -- "${PWD##*/}"
+
# Ensure that all the packages given as arguments are installed.
pkg_list "$@" >/dev/null
diff --git a/man/cpt.1 b/man/cpt.1
index 54d0e0d..b9eece1 100644
--- a/man/cpt.1
+++ b/man/cpt.1
@@ -21,7 +21,7 @@ program or through the web from
.Lk https://carbslinux.org/docs.html .
It can also be read plaintext by running
.Pp
-.Dl less Pa /usr/share/doc/cpt.txt
+.Dl less Pa /usr/share/doc/cpt/cpt.txt
.Sh AUTHOR
.An Cem Keylan Aq Mt cem@ckyln.com
.Sh LICENSE