minor, rename ver command to scmver

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, conditionalise on WITH_SCMVER

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'cmd/scmver'

* cmd/scmver:
  minor, conditionalise on WITH_SCMVER
  minor, rename ver command to scmver
fix, reset DP before goto'ing cwd label where invariant is DP == FN

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, actually \nul out the rightmost / in xdirname()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
debug, add some debugging statements in yuck-version.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, clarify the cwd fallback

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, print version info upon -v|--verbose for scmver command

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'cmd/scmver'

* cmd/scmver:
  minor, print version info upon -v|--verbose for scmver command
  hygiene, clarify the cwd fallback
  debug, add some debugging statements in yuck-version.c
  fix, actually \nul out the rightmost / in xdirname()
  fix, reset DP before goto'ing cwd label where invariant is DP == FN
hygiene, declare yuck_version() restrict

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, make run_m4() take all args (but m4)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, abstract from printing scm names, use array yscm_strs instead

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, run m4 at the end of cmd_scmver() with macros defined to V object

YUCK_SCMVER_VTAG holds v->vtag
YUCK_SCMVER_SCM holds printed representation of v->scm
YUCK_SCMVER_DIST holds v->dist
YUCK_SCMVER_RVSN holds v->rvsn
YUCK_SCMVER_FLAG_DIRTY is set iff v->dirty is set

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, up the max number of m4 args to 16

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, filter target file in scmver through yuck-version.m4

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'cmd/scmver'

* cmd/scmver:
  minor, filter target file in scmver through yuck-version.m4
  chore, up the max number of m4 args to 16
  minor, run m4 at the end of cmd_scmver() with macros defined to V object
  minor, abstract from printing scm names, use array yscm_strs instead
  minor, make run_m4() take all args (but m4)
  hygiene, declare yuck_version() restrict