diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-14 10:29:08 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-14 10:29:08 +0200 |
| commit | a35a7805e97b115ae04181dce6cf940e546c7295 (patch) | |
| tree | 26780a846079a7441467d2dd84686dbbca0ca872 /CLAUDE.md | |
| parent | 804a499754f5fec2db465effb174448d924e344e (diff) | |
| download | mkhintfile-a35a7805e97b115ae04181dce6cf940e546c7295.tar.gz mkhintfile-a35a7805e97b115ae04181dce6cf940e546c7295.zip | |
add --no-dl/-N option to skip downloads and set NODOWNLOAD=yes
Adds --no-dl/-N flag for use with --hintfile or --new. Skips wget,
inserts NODOWNLOAD=yes after MD5SUM_x86_64 in the hint file. Also
fixes README (correct paths, old command name, missing --delete/--clean
sections) and updates CLAUDE.md and bash completion accordingly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -26,7 +26,10 @@ 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 --new mypackage # empty hint, no version +bash mkhint --version 2.0.1 --hintfile mypackage --no-dl # skip downloads, add NODOWNLOAD=yes +bash mkhint --new mypackage --no-dl # create hint with NODOWNLOAD=yes +bash mkhint --delete mypackage bash mkhint --clean ``` @@ -37,6 +40,8 @@ No test suite exists. Test manually against real `REPO_DIR`/`HINT_DIR` or with m - `--hintfile` update: backs up to `.bak`, replaces old version string globally via `sed`, re-downloads both URLs to recalculate MD5 checksums. Skips download if value is `UNSUPPORTED` or `UNTESTED`. - `--new` with existing `.info`: copies `.info` as template, strips `PRGNAM`, `HOMEPAGE`, `MAINTAINER`, `EMAIL`, comments out `REQUIRES`, sets `ARCH="x86_64"`. - `--new` when hint already exists: backs up old, creates empty skeleton. +- `--no-dl` / `-N`: skips all downloads; inserts `NODOWNLOAD=yes` after `MD5SUM_x86_64=` line. Works with `--hintfile` or `--new`. Error if used alone. +- `--delete` / `-d`: removes hint file and `.bak` if present. Accepts multiple package names. Exits 2 on first missing file. - Downloads go to `/tmp/mkhint/download` (single shared temp file, deleted after md5 calculation). ## Exit Codes |
