aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-05 21:07:38 +0200
committerDanilo M. <danix@danix.xyz>2026-07-05 21:07:38 +0200
commit0c588523a5c5afd6b28e36e14e9ca2c166d61097 (patch)
tree4fb46747dd6af0cdf690a0f3998cd31df497c4f9
parent857e1b38aad13b17aea233c61bed239719973508 (diff)
downloadmkhintfile-0c588523a5c5afd6b28e36e14e9ca2c166d61097.tar.gz
mkhintfile-0c588523a5c5afd6b28e36e14e9ca2c166d61097.zip
chore: release v1.1.2v1.1.2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
-rw-r--r--CHANGELOG.md6
-rwxr-xr-xmkhint2
-rw-r--r--mkhint.1.gzbin2548 -> 2824 bytes
-rw-r--r--mkhint.1.md18
4 files changed, 22 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3c6479c..6a018b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project are documented here. The format is based on
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
[Semantic Versioning](https://semver.org/).
+## [1.1.2] - 2026-07-05
+
+### Fixed
+- Man page: correct the `--new` description (it strips/comments `.info` fields
+ rather than copying it as-is) and add a BASH COMPLETION section.
+
## [1.1.1] - 2026-07-05
### Added
diff --git a/mkhint b/mkhint
index 9cbe77f..80cd029 100755
--- a/mkhint
+++ b/mkhint
@@ -39,7 +39,7 @@ if [[ ! -d $TMP_DIR ]]; then
mkdir $TMP_DIR
fi
-readonly MKHINT_VERSION="1.1.1"
+readonly MKHINT_VERSION="1.1.2"
# Variables
VERSION=""
diff --git a/mkhint.1.gz b/mkhint.1.gz
index 1def0df..3f96fa3 100644
--- a/mkhint.1.gz
+++ b/mkhint.1.gz
Binary files differ
diff --git a/mkhint.1.md b/mkhint.1.md
index cf73fb8..3f87454 100644
--- a/mkhint.1.md
+++ b/mkhint.1.md
@@ -1,4 +1,4 @@
-% MKHINT(1) mkhint 1.1.1 | User Commands
+% MKHINT(1) mkhint 1.1.2 | User Commands
% Danilo M.
% July 2026
@@ -51,7 +51,9 @@ latest version and prompts to accept, override, or decline. Backs the hint up
to *FILE*.bak first.
**\--new**, **-n** *FILE*
-: Create a new hint file from the package's `.info` template. Keeps `VERSION`
+: Create a new hint file from the package's `.info`. Strips `PRGNAM`,
+`HOMEPAGE`, `MAINTAINER`, and `EMAIL`, comments out `REQUIRES`, and sets
+`ARCH="x86_64"`, keeping only the variables a hint needs. `VERSION` is kept
from the `.info` unless **-V** is given. Appends an **nvchecker** section to the
config, autodetecting a github or pypi source or leaving a commented stub.
@@ -105,7 +107,7 @@ Same, then append `NODOWNLOAD=yes`:
Create a new hint from `.info`:
- mkhint --new mypackage # copy .info as-is, keep its VERSION
+ mkhint --new mypackage # from .info, keep its VERSION
mkhint -n mypackage -V 1.2.3 # update version + recalculate md5
mkhint -n mypackage -V 1.2.3 -N # same, add NODOWNLOAD=yes
@@ -189,6 +191,16 @@ and the **\--new** phantom-dep hook no-ops.
4
: Required tool not available (wget / nvchecker / nvtake / jq).
+# BASH COMPLETION
+
+A bash completion script ships with **mkhint** (install to
+*/etc/bash-completion.d/mkhint*). It completes long and short options and, for
+**-f**, **-n**, **-d**, **-C**, **-R**, and **-l**, the package names from their
+respective directories. With **-f** *package* already on the command line,
+**-V** *TAB* suggests the current `VERSION` from that package's hint. The
+completion script sources the same *~/.config/mkhint/config*, so its paths stay
+in sync with **mkhint**.
+
# SEE ALSO
**slackrepo**(8), **nvchecker**(1), **nvtake**(1)