aboutsummaryrefslogtreecommitdiff
path: root/check
AgeCommit message (Collapse)AuthorFilesLines
2017-10-31Use "shell" not "sh" consistentlyTom Ryder2-4/+4
I'm going to pretend this is a crucially important production fix, in order to try out the "hotfix" part of the "Git flow" workflow.
2017-10-31Correct some vestigial programs to shell namesTom Ryder1-1/+1
Just for consistency.
2017-10-31Bring Xinit check/lint scripts up to standardTom Ryder1-3/+6
This makes them more consistent with the work already done on the check and lint scripts for the other targets.
2017-10-31Inline check arguments for URxvt perlsTom Ryder1-2/+1
There's no point making a list out of just one globbed item; we'll just inline it. That's also done for some of the other `check` scripts anyway.
2017-10-31Check and lint URxvt Perls correctlyTom Ryder1-3/+4
Require that the URxvt Perls are built correctly. There's only one at the moment, so I'll make that the single prerequisite for the `check-urxvt` target.
2017-10-31Apply revisions to `check-zsh` target as wellTom Ryder1-4/+8
I forgot about this one.
2017-10-31Tidy and correct linting for all three shellsTom Ryder3-18/+26
Reduce each one to target only the dotfiles specifically for that shell, as opposed to previously where for example the `check-sh` target was checking shell shims in for `mpd` and `plenv`. I'm still not completely sure that's the right approach, but it's at least less conceptually muddy than what we had before. Notably, the check and lint for Korn shell includes a single POSIX shell script file in its `shrc.d` subdirectory, so that check is executed separately.
2017-10-31Use shell name not command in check/lint messagesTom Ryder1-3/+3
This is a little bit clearer and nicer to read, I think.
2017-10-31Apply stable check and lint methods to games shellTom Ryder1-2/+3
This applies the same stable approach to testing the actual built games that are shebannged with #!/bin/sh as has been applied to the shell scripts in the `check-bin` and `lint-bin` targets. There are no GNU Bash games in these directories, so the latter block of code from the `bin` analogues to check or lint those is not needed. The same applies here; this is not as complete a checking or linting of the games directory as it could be; ideally we would check the sed(1) and awk(1) scripts too.
2017-10-31Add conditional Bash `check-bin`, `lint-bin`Tom Ryder1-0/+11
Both blocks are analogues of the POSIX checks, but are wrapped in a conditional so that bash(1) doesn't become a hard dependency of the default `make install` target.
2017-10-31Correct misleading output for `lint-bin`Tom Ryder1-1/+1
We haven't checked all of the shell scripts, just the POSIX sh ones, which at present, is all but one of them; han(1df).
2017-10-31Adjust `check-bin`, `lint-bin` for built scriptsTom Ryder1-1/+1
Make the `$(BINS)` target a prerequisite of `check-bin` so that all of the scripts with a #!/bin/sh shebang are built, and then check them all by iterating through a glob (and hence an order according to LC_COLLATE) and stripping the `.sh` suffix to find the name of the matching shebanged script. Leverage `shellcheck`'s support of multiple check arguments to build an argument list of the binscripts first before passing all of those to a single call, simply for speed. We don't have anything in this target to test the scripts of any other type, such as the `.awk` or `.sed` scripts. `gawk` has a `--lint` mode that might apply.
2017-06-18Update check/lint shTom Ryder1-1/+7
2017-05-24Remove Yash supportTom Ryder2-7/+0
I never use it
2017-04-09Add xinitrc.d script checksTom Ryder1-0/+4
2017-04-09Restructure shell install and checkTom Ryder1-0/+12
2017-04-05More sh flexibility (check/lint scripts)Tom Ryder12-43/+12
2016-12-27Add zsh checkingTom Ryder1-0/+6
2016-12-17Rename all pdksh stuff to kshTom Ryder2-6/+6
As part of a foray into more active use of ksh and derivatives.
2016-08-31Add very basic Yash supportTom Ryder1-0/+6
I know almost nothing about Yash yet, but reading the manual page on its startup behaviour implies a little coaxing is necessary to make it play nicely with my file layout.
2016-08-31Build URxvt Perls with shb(1)Tom Ryder1-1/+4
2016-08-29Remove misplaced check targetTom Ryder1-1/+1
2016-08-29Move han(1) to be shebanggedTom Ryder1-1/+1
2016-08-26Put dotfiles manuals into their own sectionTom Ryder1-1/+1
This probably contains a few mistakes
2016-08-23Use saner approach to check/man file listingTom Ryder1-12/+8
2016-08-20Port all bash_profile.d scripts to POSIX shTom Ryder1-1/+1
Also require flag files in ~/.welcome for displaying or not displaying login stuff
2016-08-17Include shrc.d in check-sh targetTom Ryder1-1/+1
Quote a string entirely to appease shellcheck too
2016-08-17Be explicit about check/man passingTom Ryder1-0/+3
2016-08-17Simplify a couple of printf callsTom Ryder1-2/+2
2016-08-16Check for executability before sh -nTom Ryder2-2/+2
2016-08-16Rename "test" targets to "check"Tom Ryder7-0/+101
Mostly to make way for an actual test suite beyond mere syntax checking