summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* xmksv: add ability to create log services v0.65classabbyamp2023-02-073-5/+26
|
* xtools.1: fix lintLeah Neukirchen2023-01-312-4/+5
|
* Isolate optional arguments in docsFreddy List2023-01-312-39/+88
| | | | Closes: #282 [via git-merge-pr]
* completions: fix typomhmdanas2023-01-251-1/+1
| | | | Closes: #278 [via git-merge-pr]
* xtools.1: tweaksLeah Neukirchen2023-01-251-6/+1
|
* xchroot: mount and shell fixesAndrew J. Hesford2023-01-071-6/+8
| | | | | | | - Only try to launch shells that are executable - Make bind mounts slaves to avoid back-propagating unmounts Closes: #276 [via git-merge-pr]
* xlint: improve scanning of deprecated variablesclassabbyamp2022-11-241-3/+9
| | | | | previously, deprecated variables showed some spurious and confusing messages. now they should have a better message.
* xlint: detect trailing space in short_descBenjamín Albiñana2022-11-121-0/+1
|
* xnew: don't use $pkgname in $distfilesMichal Vasilek2022-11-111-1/+1
| | | | | | | | | $pkgname is not constant, it can change when the package is renamed downstream while we would expect it to still build from the correct sources. It also often doesn't save any characters and not using the variable makes prettier, simpler URLs that can often be copied from the template without manually replacing variables to get to the page with sources.
* xnew: remove wrksrc and create_wrksrc from created templateclassabbyamp2022-11-081-2/+1
|
* xlint: don't allow wrksrcclassabbyamp2022-11-081-4/+1
| | | | for void-linux/void-packages#40122
* xchroot: do not require absolute pathMichal Vasilek2022-11-081-4/+1
|
* xlocate: handle lack of column(1) gracefullyclassabbyamp2022-11-021-1/+7
|
* xrevbump: various improvementsclassabbyamp2022-10-232-19/+36
| | | | | | | | | | | | - commit all tracked files in srcpkgs/$pkgname/ instead of just template - don't increment revision if the user has already done it - this also handles cases where committing fails, which now prints a message (two failure modes I have encountered: commit signing fails, pre-commit hook fails (I run `xlint` in one)) - allow addition of flags to the `git commit` invocation with `xrevbump MESSAGE TEMPLATES... -- COMMIT_ARGS` - use more bashisms to make things a bit neater - update manpage/usage
* xlocate: output aligned, don't show "git grep" columnMartin Tournoij2022-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable the column number for "git grep" too, and pipe through column for nicer aligned output. Before: % ./xlocate /lib/libEGL MesaLib-devel-22.1.7_1 5:/usr/lib/libEGL_mesa.so -> /usr/lib/libEGL_mesa.so.0 jetbrains-jdk-bin-11.0.15b2043.56_1 20:/usr/lib/jvm/jbrsdk/lib/libEGL.so libglvnd-1.4.0_1 5:/usr/lib/libEGL.so.1 -> /usr/lib/libEGL.so.1.1.0 libglvnd-1.4.0_1 5:/usr/lib/libEGL.so.1.1.0 libglvnd-devel-1.4.0_1 5:/usr/lib/libEGL.so -> /usr/lib/libEGL.so.1 mesa-22.1.7_1 5:/usr/lib/libEGL_mesa.so.0 -> /usr/lib/libEGL_mesa.so.0.0.0 mesa-22.1.7_1 5:/usr/lib/libEGL_mesa.so.0.0.0 nvidia-libs-515.65.01_1 5:/usr/lib/libEGL_nvidia.so.0 -> /usr/lib/libEGL_nvidia.so.515.65.01 nvidia-libs-515.65.01_1 5:/usr/lib/libEGL_nvidia.so.515.65.01 nvidia390-libs-390.154_1 5:/usr/lib/libEGL_nvidia.so.0 -> /usr/lib/libEGL_nvidia.so.390.154 nvidia390-libs-390.154_1 5:/usr/lib/libEGL_nvidia.so.390.154 nvidia470-libs-470.141.03_1 5:/usr/lib/libEGL_nvidia.so.0 -> /usr/lib/libEGL_nvidia.so.470.141.03 nvidia470-libs-470.141.03_1 5:/usr/lib/libEGL_nvidia.so.470.141.03 After: % ./xlocate /lib/libEGL MesaLib-devel-22.1.7_1 /usr/lib/libEGL_mesa.so -> /usr/lib/libEGL_mesa.so.0 jetbrains-jdk-bin-11.0.15b2043.56_1 /usr/lib/jvm/jbrsdk/lib/libEGL.so libglvnd-1.4.0_1 /usr/lib/libEGL.so.1 -> /usr/lib/libEGL.so.1.1.0 libglvnd-1.4.0_1 /usr/lib/libEGL.so.1.1.0 libglvnd-devel-1.4.0_1 /usr/lib/libEGL.so -> /usr/lib/libEGL.so.1 mesa-22.1.7_1 /usr/lib/libEGL_mesa.so.0 -> /usr/lib/libEGL_mesa.so.0.0.0 mesa-22.1.7_1 /usr/lib/libEGL_mesa.so.0.0.0 nvidia-libs-515.65.01_1 /usr/lib/libEGL_nvidia.so.0 -> /usr/lib/libEGL_nvidia.so.515.65.01 nvidia-libs-515.65.01_1 /usr/lib/libEGL_nvidia.so.515.65.01 nvidia390-libs-390.154_1 /usr/lib/libEGL_nvidia.so.0 -> /usr/lib/libEGL_nvidia.so.390.154 nvidia390-libs-390.154_1 /usr/lib/libEGL_nvidia.so.390.154 nvidia470-libs-470.141.03_1 /usr/lib/libEGL_nvidia.so.0 -> /usr/lib/libEGL_nvidia.so.470.141.03 nvidia470-libs-470.141.03_1 /usr/lib/libEGL_nvidia.so.470.141.03 Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> Closes: #265 [via git-merge-pr]
* xuname: avoid "cat abuse" and run awk directly on /proc/cpuinfoJami Kettunen2022-09-121-2/+2
|
* xvoidstrap: allow relative dirs, add aarch64 mirrorclassabbyamp2022-09-081-4/+3
|
* _xtools: complete properties for xpkgdiff -pclassabbyamp2022-09-041-1/+1
|
* xpkgdiff: improve cross functionalityclassabbyamp2022-09-043-8/+44
| | | | | adds `-R` and `-a` to make it easier to handle cross, but still support setting XBPS_TARGET_ARCH directly.
* xpkgdiff: clean up even on errorclassabbyamp2022-09-021-4/+8
|
* xlint: check if vopt_if can be vopt_boolclassabbyamp2022-08-131-0/+1
| | | | | | fixes #257 Closes: #258 [via git-merge-pr]
* xgensum: use getopts for argument parsing, update completionsclassabbyamp2022-08-132-19/+20
| | | | Closes: #256 [via git-merge-pr]
* xlint: add disable_parallel_check to variable listclassabbyamp2022-06-301-0/+1
|
* Revert "xlint: lint multi-line value indentation"Leah Neukirchen2022-06-251-17/+0
| | | | | | | 18:59:51 <abby> leah2, can you revert the multiline lint for now, I'm working on a better way but it's too buggy to stay for now This reverts commit 16e6e3e9852c988b5bf0b416fabaeaa03588696f.
* xlint: lint multi-line value indentationclassabbyamp2022-06-251-0/+17
| | | | | | | | | | | - use awk because scan (grep) does not work over multiple lines - finds the opening and closing of a variable definition, then checks if it's on the first line and, if not, checks if the first characters are not <space><:graph:> - checks both single- and double-quoted strings, in a loop because shell makes that hard - detects lines in multi-line strings that end in a backslash - `| sort -u -k2` so it does not spam, similar to the other indent lint
* xlint: fix lints broken by extra sedclassabbyamp2022-06-251-3/+2
| | | | bug introduced in 8c0e21060fd0abdb16c10d62a56ead0a4da75062
* xlint: require specifying versions when using cargo updateJan Christian Grünhage2022-06-181-0/+2
| | | | Closes: #249 [via git-merge-pr]
* xvoidstrap: replace alpha.de with repo-defaultclassabbyamp2022-06-141-2/+2
|
* xuname: replace alpha.de with repo-defaultclassabbyamp2022-06-141-4/+4
|
* xrecent: replace alpha.de with repo-defaultclassabbyamp2022-06-141-6/+6
|
* xlocate: replace alpha.de with repo-defaultclassabbyamp2022-06-141-1/+1
|
* xlint: make output prefix consistentclassabbyamp2022-05-171-5/+6
| | | | | | | a few lints used the absolute path (`$template`) as prefix instead of `$argument` Closes: #246 [via git-merge-pr]
* xlint: remove print in explain_make_checkclassabbyamp2022-05-171-1/+1
| | | | | | | | | | | | | | | | | before (prints line before make_check): ``` $ xlint R shlib_provides="libR.so" /home/abi/void-packages/srcpkgs/R/template:28: explain why the tests fail ``` after: ``` $ xlint R /home/abi/void-packages/srcpkgs/R/template:28: explain why the tests fail ``` Closes: #245 [via git-merge-pr]
* xlint: escape slashes in scan() msg to prevent sed errorsclassabbyamp2022-05-171-1/+1
| | | | Closes: #244 [via git-merge-pr]
* xlint: check if manually defined wrksrc is defaultclassabbyamp2022-05-171-1/+8
| | | | | | | also add a regex_escape filter to reduce false-positives in a couple places Closes: #242 [via git-merge-pr]
* xlint: detect space before tabsLeah Neukirchen2022-05-161-0/+1
|
* xlint: deduplicate $pkgname and $versionclassabbyamp2022-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a slightly naïve solution that does not check if $pkgname matches the template's directory. That would not be very trivial to do to work with the git index functionality or subpackages, and I'm not quite sure how to handle that. Tested by putting two $pkgname and $version in a template. Before: ``` $ xlint chezmoi grep: the -P option only supports a single pattern chezmoi' chezmoi: 'pkgname' defined more than once chezmoi: 'version' defined more than once chezmoi: Place license= after pkgname= chezmoi: Place maintainer= after version= chezmoi:1: Header should be: # Template file for 'chezmoi chezmoi:4: revision does not appear immediately after version ``` After: ``` $ xlint chezmoi chezmoi: 'pkgname' defined more than once chezmoi: 'version' defined more than once chezmoi: Place license= after pkgname= chezmoi: Place maintainer= after version= chezmoi:4: revision does not appear immediately after version ```
* xpkgdiff: run an in-memory sync to allow use of XBPS_TARGET_ARCHclassabbyamp2022-05-051-2/+2
| | | | | | If the user would like to run a diff for a package on a certain arch, XBPS_TARGET_ARCH=other-arch xpkgdiff -f foo will now work properly, even if the user does not have a local repodata for that arch already.
* xlint: show line number of wrongly ordered linePiotr Wójcik2022-05-051-1/+5
|
* xlocate: allow chroot-gitPiotr Wójcik2022-04-261-7/+16
| | | | Closes: #237 [via git-merge-pr]
* xpkgdiff: fix check for package existenceclassabbyamp2022-03-311-1/+1
|
* xlint: fix regexp for explain_make_checkLeah Neukirchen2022-03-281-1/+1
|
* xlint: check make_check comment v0.64Piotr Wójcik2022-03-261-0/+8
| | | | Closes: #220 [via git-merge-pr]
* xlint: reject underscore in versionPiotr Wójcik2022-03-261-1/+1
| | | | Closes: #110 [via git-merge-pr]
* New tool: xpkgdiffclassabbyamp2022-03-253-1/+122
| | | | Closes: #232 [via git-merge-pr]
* xnew: propose adding a changelogtibequadorian2022-02-211-0/+1
|
* xlint: fix bug in previous commitGonzalo Tornaría2022-02-211-3/+6
| | | | | | | | In scan() I was using $argument in the sed script, but oftentimes $arguments is a path including slashes which breaks havoc. Different way now, hopefully this is correct now. Note that $msg has to go through sed since some messages use `\2` to show the matching line.
* xlint: improvements to lint from git indexGonzalo Tornaría2022-02-203-9/+22
| | | | | | - do not leak $tmpfile in output from scan() - indent using tabs - add new options to README
* xlint: add option to lint from git indexGonzalo Tornaría2022-02-201-4/+17
| | | | | | | | | | | | | | This commit introduces two new uses of xlint: $ xlint :PKGNAME Lints the template corresponding to package PKGNAME as currently staged in the git index (i.e. the version that would be committed) $ xlint : Lints all templates that are changed in the git index. Useful to run from the pre-commit hook for the void-packages repo.
* xlint: check system_accounts underscore prefixPiotr Wójcik2021-10-041-0/+92
| | | | Existing accounts should keep their name.