From 804a499754f5fec2db465effb174448d924e344e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 7 May 2026 17:42:30 +0200 Subject: rename mkhintfile.sh to mkhint, add --delete/-d option - Rename script and completion file to mkhint/mkhint.bash-completion - Add --delete/-d flag to remove one or more hint files (and .bak if present) - Fix bash completion: correct hint_dir path, use find for nested .info files, add --delete completion, add flag name completion - Update all references in CLAUDE.md, README.md, and source files Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'CLAUDE.md') diff --git a/CLAUDE.md b/CLAUDE.md index 2ee689b..ea3e883 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,11 +4,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## What This Is -`mkhintfile.sh` — bash utility for managing [slackrepo](https://idlemoor.github.io/slackrepo/) hint files. Hint files override build variables (version, download URL, checksum) for SlackBuilds. +`mkhint` — bash utility for managing [slackrepo](https://idlemoor.github.io/slackrepo/) hint files. Hint files override build variables (version, download URL, checksum) for SlackBuilds. ## Configuration -Two paths hardcoded near top of `mkhintfile.sh` (lines 16–17): +Two paths hardcoded near top of `mkhint` (lines 16–17): ```bash REPO_DIR="/var/lib/sbopkg/SBo-danix/" # SBo repository with .info files @@ -22,12 +22,12 @@ Bash completion script has its own hardcoded copies (lines 8–9) — keep in sy No build step. Direct execution: ```bash -bash mkhintfile.sh --help -bash mkhintfile.sh --list -bash mkhintfile.sh --version 2.0.1 --hintfile mypackage -bash mkhintfile.sh --version 1.2.3 --new mypackage -bash mkhintfile.sh --new mypackage # empty hint, no version -bash mkhintfile.sh --clean +bash mkhint --help +bash mkhint --list +bash mkhint --version 2.0.1 --hintfile mypackage +bash mkhint --version 1.2.3 --new mypackage +bash mkhint --new mypackage # empty hint, no version +bash mkhint --clean ``` No test suite exists. Test manually against real `REPO_DIR`/`HINT_DIR` or with mock directories. @@ -52,6 +52,6 @@ No test suite exists. Test manually against real `REPO_DIR`/`HINT_DIR` or with m ## Installation ```bash -sudo cp mkhintfile.sh /usr/local/bin/mkhintfile -sudo cp mkhintfile.bash-completion /etc/bash-completion.d/mkhintfile +sudo cp mkhint /usr/local/bin/mkhint +sudo cp mkhint.bash-completion /etc/bash-completion.d/mkhint ``` -- cgit v1.2.3