maint.mk: improve sc_cross_check_PATH_usage_in_tests
authorJim Meyering <meyering@redhat.com>
Sun, 9 May 2010 20:30:09 +0000 (22:30 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 9 May 2010 20:40:34 +0000 (22:40 +0200)
commit9c827e02efc96390ff7b3e2868684bad1e4b2b1d
tree45d87af22c9f1c1e63384e4175084e47e94e6c3a
parent190bf61ecbb3727a3dd742498938be9e251f9315
maint.mk: improve sc_cross_check_PATH_usage_in_tests

With my recent change in init.sh from the two-line form:
    -#   : ${srcdir=.}
    -#   . "$srcdir/init.sh"; path_prepend_ .
    +#   . "${srcdir=.}/init.sh"; path_prepend_ .
I noticed that using the one-line form would cause this test
to fail with a false-positive, or to stop working altogether,
depending on whether help-version changed or all the tests did.
* top/maint.mk (_hv_regex): Remove this definition.
(_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
(_hv_regex_strong): Use a stronger regex to check for conformance.
(sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
Give a separate diagnostic for lack of conforming use.
ChangeLog
top/maint.mk